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

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

Issue 2163983004: Pass per-frame task runners to Workers (when possible) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 5 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 42c1eeb3afe180ebaa3a8cc2a455409e7c671576..7682ad95620c24d3ff6c3d0c53ff802433adf425 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();
@@ -124,6 +127,8 @@ private:
Persistent<WorkerClients> m_workerClients;
+ std::unique_ptr<ParentFrameTaskRunners> m_parentFrameTaskRunners;
+
RefPtr<WorkerLoaderProxy> m_loaderProxy;
};
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698