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

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

Issue 2236833002: Pass per-frame task runners to Workers (when possible) [2nd try] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing hash traits 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/InProcessWorkerMessagingProxy.h
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h
index f1aa6e3c6e5f6254446fe494fe01baffb0ad3f84..1a518fe13798fdac0be931238c299aee57641d79 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h
@@ -41,12 +41,13 @@
namespace blink {
-class InProcessWorkerObjectProxy;
-class WorkerThread;
class ExecutionContext;
class InProcessWorkerBase;
+class InProcessWorkerObjectProxy;
+class ParentFrameTaskRunners;
class WorkerClients;
class WorkerInspectorProxy;
+class WorkerThread;
// TODO(nhiroki): "MessagingProxy" is not well-defined term among worker
// components. Probably we should rename this to something more suitable.
@@ -77,6 +78,8 @@ public:
ExecutionContext* getExecutionContext() const { return m_executionContext.get(); }
+ ParentFrameTaskRunners* getParentFrameTaskRunners() { return m_parentFrameTaskRunners.get(); }
+
// Number of live messaging proxies, used by leak detection.
static int proxyCount();
@@ -123,6 +126,8 @@ private:
Persistent<WorkerClients> m_workerClients;
+ Persistent<ParentFrameTaskRunners> m_parentFrameTaskRunners;
+
RefPtr<WorkerLoaderProxy> m_loaderProxy;
};

Powered by Google App Engine
This is Rietveld 408576698