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

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

Issue 2178223002: Refactor Worklet class to use ScriptResource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: synced to the head Created 4 years, 4 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/MainThreadWorkletGlobalScope.h
diff --git a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
index b4c57f56296348092c1f53d10b20da417793b36b..990e4db5baeab77890f1e87cc9e15bc0ac282a84 100644
--- a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
+++ b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
@@ -15,6 +15,7 @@ namespace blink {
class ConsoleMessage;
class LocalFrame;
+class ScriptSourceCode;
class CORE_EXPORT MainThreadWorkletGlobalScope : public WorkletGlobalScope, public WorkletGlobalScopeProxy, public LocalFrameLifecycleObserver {
public:
@@ -22,7 +23,7 @@ public:
bool isMainThreadWorkletGlobalScope() const final { return true; }
// WorkletGlobalScopeProxy
- void evaluateScript(const String& source, const KURL& scriptURL) final;
+ void evaluateScript(const ScriptSourceCode&) final;
void terminateWorkletGlobalScope() final;
// WorkerOrWorkletGlobalScope

Powered by Google App Engine
This is Rietveld 408576698