OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CompositorProxyClient_h | 5 #ifndef CompositorProxyClient_h |
6 #define CompositorProxyClient_h | 6 #define CompositorProxyClient_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class CompositorProxy; | 13 class CompositorProxy; |
14 | 14 |
15 class CORE_EXPORT CompositorProxyClient | 15 class CORE_EXPORT CompositorProxyClient : public GarbageCollectedMixin { |
16 : public GarbageCollectedFinalized<CompositorProxyClient> { | |
17 public: | 16 public: |
18 virtual ~CompositorProxyClient(){}; | 17 virtual ~CompositorProxyClient(){}; |
19 DEFINE_INLINE_VIRTUAL_TRACE() {} | 18 DEFINE_INLINE_VIRTUAL_TRACE() {} |
20 | 19 |
21 virtual void registerCompositorProxy(CompositorProxy*) = 0; | 20 virtual void registerCompositorProxy(CompositorProxy*) = 0; |
22 // It is not guaranteed to receive an unregister call for every registered | 21 // It is not guaranteed to receive an unregister call for every registered |
23 // proxy. In fact we only receive one when a proxy is explicitly | 22 // proxy. In fact we only receive one when a proxy is explicitly |
24 // disconnected otherwise we rely on oilpan collection process to remove the | 23 // disconnected otherwise we rely on oilpan collection process to remove the |
25 // weak reference to the proxy. | 24 // weak reference to the proxy. |
26 virtual void unregisterCompositorProxy(CompositorProxy*) = 0; | 25 virtual void unregisterCompositorProxy(CompositorProxy*) = 0; |
27 }; | 26 }; |
28 | 27 |
29 } // namespace blink | 28 } // namespace blink |
30 | 29 |
31 #endif // CompositorProxyClient_h | 30 #endif // CompositorProxyClient_h |
OLD | NEW |