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

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

Issue 2118243002: [proof-of-concept] SW thread independent of the main thread Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/WorkerReportingProxy.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h b/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h
index 166163e6203501fdebb3abb2525a215b179c0d6e..139877827b453be57b567265a99738b8114bae84 100644
--- a/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h
+++ b/third_party/WebKit/Source/core/workers/WorkerReportingProxy.h
@@ -40,6 +40,7 @@
namespace blink {
class ConsoleMessage;
+class KURL;
class SourceLocation;
class WorkerOrWorkletGlobalScope;
@@ -74,6 +75,10 @@ public:
// is to be destructed. (When this is called it is guaranteed that
// WorkerGlobalScope is still alive)
virtual void willDestroyWorkerGlobalScope() = 0;
+
+ virtual void initializeOnWorkerThread() {}
+
+ virtual std::unique_ptr<String> takeAlternativeCode(const KURL&) { return nullptr; }
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp ('k') | third_party/WebKit/Source/core/workers/WorkerThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698