OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CompositorWorkerGlobalScope_h | 5 #ifndef CompositorWorkerGlobalScope_h |
6 #define CompositorWorkerGlobalScope_h | 6 #define CompositorWorkerGlobalScope_h |
7 | 7 |
8 #include "core/dom/CompositorProxyClient.h" | 8 #include "core/dom/CompositorProxyClient.h" |
9 #include "core/dom/FrameRequestCallbackCollection.h" | 9 #include "core/dom/FrameRequestCallbackCollection.h" |
10 #include "core/dom/MessagePort.h" | 10 #include "core/dom/MessagePort.h" |
11 #include "core/workers/WorkerGlobalScope.h" | 11 #include "core/workers/WorkerGlobalScope.h" |
12 #include "modules/ModulesExport.h" | 12 #include "modules/ModulesExport.h" |
13 #include <memory> | 13 #include <memory> |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class CompositorWorkerThread; | 17 class CompositorWorkerThread; |
| 18 class InProcessWorkerObjectProxy; |
18 class WorkerThreadStartupData; | 19 class WorkerThreadStartupData; |
19 | 20 |
20 class MODULES_EXPORT CompositorWorkerGlobalScope final | 21 class MODULES_EXPORT CompositorWorkerGlobalScope final |
21 : public WorkerGlobalScope { | 22 : public WorkerGlobalScope { |
22 DEFINE_WRAPPERTYPEINFO(); | 23 DEFINE_WRAPPERTYPEINFO(); |
23 | 24 |
24 public: | 25 public: |
25 static CompositorWorkerGlobalScope* create( | 26 static CompositorWorkerGlobalScope* create( |
26 CompositorWorkerThread*, | 27 CompositorWorkerThread*, |
27 std::unique_ptr<WorkerThreadStartupData>, | 28 std::unique_ptr<WorkerThreadStartupData>, |
(...skipping 21 matching lines...) Expand all Loading... |
49 | 50 |
50 DECLARE_VIRTUAL_TRACE(); | 51 DECLARE_VIRTUAL_TRACE(); |
51 | 52 |
52 private: | 53 private: |
53 CompositorWorkerGlobalScope(const KURL&, | 54 CompositorWorkerGlobalScope(const KURL&, |
54 const String& userAgent, | 55 const String& userAgent, |
55 CompositorWorkerThread*, | 56 CompositorWorkerThread*, |
56 double timeOrigin, | 57 double timeOrigin, |
57 std::unique_ptr<SecurityOrigin::PrivilegeData>, | 58 std::unique_ptr<SecurityOrigin::PrivilegeData>, |
58 WorkerClients*); | 59 WorkerClients*); |
59 CompositorWorkerThread* thread() const; | 60 |
| 61 InProcessWorkerObjectProxy& workerObjectProxy() const; |
60 | 62 |
61 bool m_executingAnimationFrameCallbacks; | 63 bool m_executingAnimationFrameCallbacks; |
62 FrameRequestCallbackCollection m_callbackCollection; | 64 FrameRequestCallbackCollection m_callbackCollection; |
63 }; | 65 }; |
64 | 66 |
65 } // namespace blink | 67 } // namespace blink |
66 | 68 |
67 #endif // CompositorWorkerGlobalScope_h | 69 #endif // CompositorWorkerGlobalScope_h |
OLD | NEW |