instantiate WorkerEventQueue in WorkerContext
authordgrogan@chromium.org <dgrogan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Nov 2011 03:22:09 +0000 (03:22 +0000)
committerdgrogan@chromium.org <dgrogan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Nov 2011 03:22:09 +0000 (03:22 +0000)
https://bugs.webkit.org/show_bug.cgi?id=72528

Reviewed by David Levin.

No new tests - nothing uses it yet.

* workers/WorkerContext.cpp:
(WebCore::WorkerContext::WorkerContext):
Instantiate WorkerEventQueue in InitializerList

* workers/WorkerEventQueue.h:
Don't inherit from RefCounted, WorkerContext has an OwnPtr to it

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@100552 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/workers/WorkerContext.cpp
Source/WebCore/workers/WorkerEventQueue.h

index b0eb22a..da6e730 100644 (file)
@@ -1,3 +1,19 @@
+2011-11-16  David Grogan  <dgrogan@chromium.org>
+
+        instantiate WorkerEventQueue in WorkerContext
+        https://bugs.webkit.org/show_bug.cgi?id=72528
+
+        Reviewed by David Levin.
+
+        No new tests - nothing uses it yet.
+
+        * workers/WorkerContext.cpp:
+        (WebCore::WorkerContext::WorkerContext):
+        Instantiate WorkerEventQueue in InitializerList
+
+        * workers/WorkerEventQueue.h:
+        Don't inherit from RefCounted, WorkerContext has an OwnPtr to it
+
 2011-11-16  Kentaro Hara  <haraken@chromium.org>
 
         Unreviewed. Rebaselined run-bindings-tests results.
index 5c34447..1742289 100644 (file)
                A1E1154813015C5D0054AC8C /* SpotLightSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A1E1154713015C5D0054AC8C /* SpotLightSource.cpp */; };
                A3BB59F31457A40D00AC56FE /* DocumentEventQueue.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A3BB59F11457A40D00AC56FE /* DocumentEventQueue.cpp */; };
                A3BB59F41457A40D00AC56FE /* DocumentEventQueue.h in Headers */ = {isa = PBXBuildFile; fileRef = A3BB59F21457A40D00AC56FE /* DocumentEventQueue.h */; settings = {ATTRIBUTES = (Private, ); }; };
+               A3E2643014748991005A8588 /* WorkerEventQueue.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A3E2642E14748991005A8588 /* WorkerEventQueue.cpp */; };
+               A3E2643114748991005A8588 /* WorkerEventQueue.h in Headers */ = {isa = PBXBuildFile; fileRef = A3E2642F14748991005A8588 /* WorkerEventQueue.h */; };
                A409C984116D0DDD007197BD /* AccessibilityProgressIndicator.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A409C982116D0DDD007197BD /* AccessibilityProgressIndicator.cpp */; };
                A409C985116D0DDD007197BD /* AccessibilityProgressIndicator.h in Headers */ = {isa = PBXBuildFile; fileRef = A409C983116D0DDD007197BD /* AccessibilityProgressIndicator.h */; };
                A4226E5A1163D667008B8397 /* JSHTMLProgressElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A4226E591163D667008B8397 /* JSHTMLProgressElement.cpp */; };
                A1E1154313015C3D0054AC8C /* DistantLightSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = DistantLightSource.cpp; path = filters/DistantLightSource.cpp; sourceTree = "<group>"; };
                A1E1154513015C4E0054AC8C /* PointLightSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = PointLightSource.cpp; path = filters/PointLightSource.cpp; sourceTree = "<group>"; };
                A1E1154713015C5D0054AC8C /* SpotLightSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SpotLightSource.cpp; path = filters/SpotLightSource.cpp; sourceTree = "<group>"; };
-               A3BB59D814579F0600AC56FE /* WorkerEventQueue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WorkerEventQueue.cpp; path = workers/WorkerEventQueue.cpp; sourceTree = "<group>"; };
-               A3BB59D914579F0600AC56FE /* WorkerEventQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WorkerEventQueue.h; path = workers/WorkerEventQueue.h; sourceTree = "<group>"; };
                A3BB59F11457A40D00AC56FE /* DocumentEventQueue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DocumentEventQueue.cpp; sourceTree = "<group>"; };
                A3BB59F21457A40D00AC56FE /* DocumentEventQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DocumentEventQueue.h; sourceTree = "<group>"; };
+               A3E2642E14748991005A8588 /* WorkerEventQueue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WorkerEventQueue.cpp; path = workers/WorkerEventQueue.cpp; sourceTree = "<group>"; };
+               A3E2642F14748991005A8588 /* WorkerEventQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WorkerEventQueue.h; path = workers/WorkerEventQueue.h; sourceTree = "<group>"; };
                A409C982116D0DDD007197BD /* AccessibilityProgressIndicator.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AccessibilityProgressIndicator.cpp; sourceTree = "<group>"; };
                A409C983116D0DDD007197BD /* AccessibilityProgressIndicator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AccessibilityProgressIndicator.h; sourceTree = "<group>"; };
                A4226E591163D667008B8397 /* JSHTMLProgressElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSHTMLProgressElement.cpp; sourceTree = "<group>"; };
                                2E4346370F546A8200B0F1BA /* WorkerContext.h */,
                                2E4346380F546A8200B0F1BA /* WorkerContext.idl */,
                                2E4346390F546A8200B0F1BA /* WorkerContextProxy.h */,
-                               A3BB59D814579F0600AC56FE /* WorkerEventQueue.cpp */,
-                               A3BB59D914579F0600AC56FE /* WorkerEventQueue.h */,
+                               A3E2642E14748991005A8588 /* WorkerEventQueue.cpp */,
+                               A3E2642F14748991005A8588 /* WorkerEventQueue.h */,
                                18F831B70FD48C7800D8C56B /* WorkerLoaderProxy.h */,
                                2E43463A0F546A8200B0F1BA /* WorkerLocation.cpp */,
                                2E43463B0F546A8200B0F1BA /* WorkerLocation.h */,
                                5038BC0B14711D340095E0D1 /* CustomFilterOperation.h in Headers */,
                                5038BE301472AD230095E0D1 /* StyleCachedShader.h in Headers */,
                                5038BE411472AD980095E0D1 /* CachedShader.h in Headers */,
+                               A3E2643114748991005A8588 /* WorkerEventQueue.h in Headers */,
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };
                                5038BC0714711CDB0095E0D1 /* WebKitCSSShaderValue.cpp in Sources */,
                                5038BE2F1472AD230095E0D1 /* StyleCachedShader.cpp in Sources */,
                                5038BE401472AD980095E0D1 /* CachedShader.cpp in Sources */,
+                               A3E2643014748991005A8588 /* WorkerEventQueue.cpp in Sources */,
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };
index 0bbabbe..c8fc7d9 100644 (file)
@@ -115,6 +115,7 @@ WorkerContext::WorkerContext(const KURL& url, const String& userAgent, WorkerThr
     , m_workerInspectorController(adoptPtr(new WorkerInspectorController(this)))
 #endif
     , m_closing(false)
+    , m_eventQueue(WorkerEventQueue::create(this))
 {
     setSecurityOrigin(SecurityOrigin::create(url));
     
index 7bd2a9b..46734d7 100644 (file)
@@ -39,7 +39,7 @@ class Event;
 class Node;
 class ScriptExecutionContext;
 
-class WorkerEventQueue : public RefCounted<WorkerEventQueue>, public EventQueue {
+class WorkerEventQueue : public EventQueue {
 public:
 
     static PassOwnPtr<WorkerEventQueue> create(ScriptExecutionContext*);