| 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" | 9 #include "modules/ModulesExport.h" |
| 10 #include "wtf/PassRefPtr.h" | 10 #include "platform/wtf/PassRefPtr.h" |
| 11 #include "wtf/text/AtomicString.h" | 11 #include "platform/wtf/text/AtomicString.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class ExceptionState; | 15 class ExceptionState; |
| 16 class ExecutionContext; | 16 class ExecutionContext; |
| 17 class InProcessWorkerMessagingProxy; | 17 class InProcessWorkerMessagingProxy; |
| 18 | 18 |
| 19 class MODULES_EXPORT CompositorWorker final : public InProcessWorkerBase { | 19 class MODULES_EXPORT CompositorWorker final : public InProcessWorkerBase { |
| 20 DEFINE_WRAPPERTYPEINFO(); | 20 DEFINE_WRAPPERTYPEINFO(); |
| 21 USING_GARBAGE_COLLECTED_MIXIN(CompositorWorker); | 21 USING_GARBAGE_COLLECTED_MIXIN(CompositorWorker); |
| 22 | 22 |
| 23 public: | 23 public: |
| 24 static CompositorWorker* Create(ExecutionContext*, | 24 static CompositorWorker* Create(ExecutionContext*, |
| 25 const String& url, | 25 const String& url, |
| 26 ExceptionState&); | 26 ExceptionState&); |
| 27 ~CompositorWorker() override; | 27 ~CompositorWorker() override; |
| 28 | 28 |
| 29 const AtomicString& InterfaceName() const override; | 29 const AtomicString& InterfaceName() const override; |
| 30 InProcessWorkerMessagingProxy* CreateInProcessWorkerMessagingProxy( | 30 InProcessWorkerMessagingProxy* CreateInProcessWorkerMessagingProxy( |
| 31 ExecutionContext*) override; | 31 ExecutionContext*) override; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 explicit CompositorWorker(ExecutionContext*); | 34 explicit CompositorWorker(ExecutionContext*); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace blink | 37 } // namespace blink |
| 38 | 38 |
| 39 #endif // CompositorWorker_h | 39 #endif // CompositorWorker_h |
| OLD | NEW |