Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.h

Issue 2312493002: [worklets] Introduce ThreadedWorkletMessagingProxy and AnimationWorkletMessagaingProxy. (Closed)
Patch Set: rebase. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.h
diff --git a/third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.h b/third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..a111c275d6a971df807f013c8f63e9448a903495
--- /dev/null
+++ b/third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.h
@@ -0,0 +1,37 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ThreadedWorkletMessagingProxy_h
+#define ThreadedWorkletMessagingProxy_h
+
+#include "core/CoreExport.h"
+#include "core/workers/ThreadedMessagingProxyBase.h"
+#include "core/workers/WorkletGlobalScopeProxy.h"
+
+namespace blink {
+
+class ThreadedWorkletObjectProxy;
+
+class CORE_EXPORT ThreadedWorkletMessagingProxy
+ : public ThreadedMessagingProxyBase
+ , public WorkletGlobalScopeProxy {
+public:
+ // WorkletGlobalScopeProxy implementation.
+ void evaluateScript(const ScriptSourceCode&) final;
+ void terminateWorkletGlobalScope() final;
+
+ void initialize();
+
+protected:
+ explicit ThreadedWorkletMessagingProxy(ExecutionContext*);
+
+ ThreadedWorkletObjectProxy& workletObjectProxy() { return *m_workletObjectProxy; }
+
+private:
+ std::unique_ptr<ThreadedWorkletObjectProxy> m_workletObjectProxy;
+};
+
+} // namespace blink
+
+#endif // ThreadedWorkletMessagingProxy_h

Powered by Google App Engine
This is Rietveld 408576698