OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CompositorProxyClient_h |
| 6 #define CompositorProxyClient_h |
| 7 |
| 8 #include "core/CoreExport.h" |
| 9 #include "core/workers/WorkerClients.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 #include "wtf/Noncopyable.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class CompositorProxy; |
| 16 class WorkerClients; |
| 17 class WorkerGlobalScope; |
| 18 |
| 19 class CORE_EXPORT CompositorProxyClient : public NoBaseWillBeGarbageCollectedFin
alized<CompositorProxyClient>, |
| 20 public WillBeHeapSupplement<WorkerClie
nts> { |
| 21 WTF_MAKE_NONCOPYABLE(CompositorProxyClient); |
| 22 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(CompositorProxyClient); |
| 23 |
| 24 public: |
| 25 CompositorProxyClient() {} |
| 26 virtual ~CompositorProxyClient() {} |
| 27 |
| 28 static CompositorProxyClient* from(WorkerClients*); |
| 29 static const char* supplementName(); |
| 30 |
| 31 virtual void registerCompositorProxy(CompositorProxy*) = 0; |
| 32 virtual void unregisterCompositorProxy(CompositorProxy*) = 0; |
| 33 virtual void requestSync(CompositorProxy*) = 0; |
| 34 |
| 35 virtual void setGlobalScope(WorkerGlobalScope*) = 0; |
| 36 virtual void requestMutation() = 0; |
| 37 }; |
| 38 |
| 39 CORE_EXPORT void provideCompositorProxyClientTo(WorkerClients*, PassOwnPtrWillBe
RawPtr<CompositorProxyClient>); |
| 40 |
| 41 } // namespace blink |
| 42 |
| 43 #endif // CompositorProxyClient_h |
OLD | NEW |