OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ThreadedWorkletMessagingProxy_h |
| 6 #define ThreadedWorkletMessagingProxy_h |
| 7 |
| 8 #include "core/CoreExport.h" |
| 9 #include "core/workers/ThreadedMessagingProxyBase.h" |
| 10 #include "core/workers/WorkletGlobalScopeProxy.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class ThreadedWorkletObjectProxy; |
| 15 |
| 16 class CORE_EXPORT ThreadedWorkletMessagingProxy |
| 17 : public ThreadedMessagingProxyBase |
| 18 , public WorkletGlobalScopeProxy { |
| 19 public: |
| 20 // WorkletGlobalScopeProxy implementation. |
| 21 void evaluateScript(const ScriptSourceCode&) final; |
| 22 void terminateWorkletGlobalScope() final; |
| 23 |
| 24 void initialize(); |
| 25 |
| 26 protected: |
| 27 explicit ThreadedWorkletMessagingProxy(ExecutionContext*); |
| 28 |
| 29 ThreadedWorkletObjectProxy& workletObjectProxy() { return *m_workletObjectPr
oxy; } |
| 30 |
| 31 private: |
| 32 std::unique_ptr<ThreadedWorkletObjectProxy> m_workletObjectProxy; |
| 33 }; |
| 34 |
| 35 } // namespace blink |
| 36 |
| 37 #endif // ThreadedWorkletMessagingProxy_h |
OLD | NEW |