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 CompositorWorker_h | 5 #ifndef CompositorWorker_h |
6 #define CompositorWorker_h | 6 #define CompositorWorker_h |
7 | 7 |
8 #include "core/workers/InProcessWorkerBase.h" | 8 #include "core/workers/InProcessWorkerBase.h" |
9 #include "modules/ModulesExport.h" | |
10 #include "wtf/PassRefPtr.h" | 9 #include "wtf/PassRefPtr.h" |
11 #include "wtf/text/AtomicString.h" | 10 #include "wtf/text/AtomicString.h" |
12 | 11 |
13 namespace blink { | 12 namespace blink { |
14 | 13 |
15 class ExceptionState; | 14 class ExceptionState; |
16 class ExecutionContext; | 15 class ExecutionContext; |
17 class WorkerGlobalScopeProxy; | 16 class WorkerGlobalScopeProxy; |
18 | 17 |
19 class MODULES_EXPORT CompositorWorker final : public InProcessWorkerBase { | 18 class CompositorWorker final : public InProcessWorkerBase { |
20 DEFINE_WRAPPERTYPEINFO(); | 19 DEFINE_WRAPPERTYPEINFO(); |
21 public: | 20 public: |
22 static CompositorWorker* create(ExecutionContext*, const String& url, Except
ionState&); | 21 static CompositorWorker* create(ExecutionContext*, const String& url, Except
ionState&); |
23 ~CompositorWorker() override; | 22 ~CompositorWorker() override; |
24 | 23 |
25 const AtomicString& interfaceName() const override; | 24 const AtomicString& interfaceName() const override; |
26 WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(ExecutionContext*) over
ride; | 25 WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(ExecutionContext*) over
ride; |
27 | 26 |
28 private: | 27 private: |
29 explicit CompositorWorker(ExecutionContext*); | 28 explicit CompositorWorker(ExecutionContext*); |
30 }; | 29 }; |
31 | 30 |
32 } // namespace blink | 31 } // namespace blink |
33 | 32 |
34 #endif // CompositorWorker_h | 33 #endif // CompositorWorker_h |
OLD | NEW |