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

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

Issue 2830603003: Worklet: Move WorkletScriptLoader from MainThreadWorklet to MainThreadWorkletGlobalScope (Closed)
Patch Set: const auto& Created 3 years, 8 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/WorkletObjectProxy.h
diff --git a/third_party/WebKit/Source/core/workers/WorkletObjectProxy.h b/third_party/WebKit/Source/core/workers/WorkletObjectProxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..f9e09645da3f6cc16e797132671a363e8eb7892a
--- /dev/null
+++ b/third_party/WebKit/Source/core/workers/WorkletObjectProxy.h
@@ -0,0 +1,26 @@
+// Copyright 2017 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 WorkletObjectProxy_h
+#define WorkletObjectProxy_h
+
+#include "core/CoreExport.h"
+#include "platform/heap/GarbageCollected.h"
+#include "platform/weborigin/KURL.h"
+#include "platform/wtf/text/WTFString.h"
+
+namespace blink {
+
+// A proxy to talk to the Worklet object on the main thread from the worklet
+// global scope that may exist in the main thread or on a different thread.
+class CORE_EXPORT WorkletObjectProxy : public GarbageCollectedMixin {
+ public:
+ // Called when the worklet module script is fetched and evaluated. |success|
+ // is true if the sequence is completed without an error.
+ virtual void DidFetchAndInvokeScript(int32_t request_id, bool success) = 0;
+};
+
+} // namespace blink
+
+#endif // WorkletObjectProxy_h

Powered by Google App Engine
This is Rietveld 408576698