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 ThreadedWorkletGlobalScopeProxy_h |
| 6 #define ThreadedWorkletGlobalScopeProxy_h |
| 7 |
| 8 #include "core/workers/WorkletGlobalScopeProxy.h" |
| 9 #include "modules/worklet/WorkletThread.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class ThreadedWorkletGlobalScopeProxy : public WorkletGlobalScopeProxy { |
| 14 public: |
| 15 ~ThreadedWorkletGlobalScopeProxy() override; |
| 16 |
| 17 // WorkletGlobalScopeProxy |
| 18 void evaluateScript(const String& source, const KURL& scriptURL) final; |
| 19 void terminateWorkletGlobalScope() final; |
| 20 |
| 21 protected: |
| 22 ThreadedWorkletGlobalScopeProxy(PassOwnPtr<WorkletThread>); |
| 23 |
| 24 private: |
| 25 OwnPtr<WorkletThread> m_workletThread; |
| 26 }; |
| 27 |
| 28 } // namespace blink |
| 29 |
| 30 #endif // ThreadedWorkletGlobalScopeProxy_h |
OLD | NEW |