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 ThreadedWorkletMessagingProxy_h | 5 #ifndef ThreadedWorkletMessagingProxy_h |
6 #define ThreadedWorkletMessagingProxy_h | 6 #define ThreadedWorkletMessagingProxy_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/workers/ThreadedMessagingProxyBase.h" | 9 #include "core/workers/ThreadedMessagingProxyBase.h" |
10 #include "core/workers/WorkletGlobalScopeProxy.h" | 10 #include "core/workers/WorkletGlobalScopeProxy.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 void Initialize(); | 25 void Initialize(); |
26 | 26 |
27 protected: | 27 protected: |
28 explicit ThreadedWorkletMessagingProxy(ExecutionContext*); | 28 explicit ThreadedWorkletMessagingProxy(ExecutionContext*); |
29 | 29 |
30 ThreadedWorkletObjectProxy& WorkletObjectProxy() { | 30 ThreadedWorkletObjectProxy& WorkletObjectProxy() { |
31 return *worklet_object_proxy_; | 31 return *worklet_object_proxy_; |
32 } | 32 } |
33 | 33 |
34 private: | 34 private: |
| 35 friend class ThreadedWorkletMessagingProxyForTest; |
| 36 |
35 std::unique_ptr<ThreadedWorkletObjectProxy> worklet_object_proxy_; | 37 std::unique_ptr<ThreadedWorkletObjectProxy> worklet_object_proxy_; |
36 | 38 |
37 WeakPtrFactory<ThreadedWorkletMessagingProxy> weak_ptr_factory_; | 39 WeakPtrFactory<ThreadedWorkletMessagingProxy> weak_ptr_factory_; |
38 }; | 40 }; |
39 | 41 |
40 } // namespace blink | 42 } // namespace blink |
41 | 43 |
42 #endif // ThreadedWorkletMessagingProxy_h | 44 #endif // ThreadedWorkletMessagingProxy_h |
OLD | NEW |