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

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

Issue 2513413003: Worker: Provide a way to access parent frame task runners from a worker thread (Closed)
Patch Set: update comments Created 4 years, 1 month 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 523dbac39d373cc96625a4178f92579711f106bf..42cd9876f68192f46f47cf3063ec7be7eb5a8744 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 ParentFrameTaskRunners;
class SourceLocation;
class WorkerOrWorkletGlobalScope;
@@ -57,6 +58,9 @@ class CORE_EXPORT WorkerReportingProxy {
SourceLocation*) = 0;
virtual void postMessageToPageInspector(const String&) = 0;
+ // Returns the parent frame's task runners.
+ virtual ParentFrameTaskRunners* getParentFrameTaskRunners() = 0;
kinuko 2016/11/28 04:24:09 This method as is might feel slightly misplaced to
nhiroki 2016/11/28 05:29:26 Good point. Now this looks a bit strange to me, to
+
// Invoked when the new WorkerGlobalScope is created. This is called after
// didLoadWorkerScript().
virtual void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) {}

Powered by Google App Engine
This is Rietveld 408576698