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