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

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

Issue 2716853002: (WIP) Worker: Merge ParentFrameTaskRunners into TaskRunnerHelper
Patch Set: WIP Created 3 years, 10 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/WorkerThread.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.h b/third_party/WebKit/Source/core/workers/WorkerThread.h
index 6c27763eadd869cc076b7900448e807c1eb4b760..9cf6ae2f34d1a9e0c7ac0ef1f980b957a507ed79 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.h
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.h
@@ -30,8 +30,8 @@
#include <memory>
#include "core/CoreExport.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/frame/csp/ContentSecurityPolicy.h"
-#include "core/workers/ParentFrameTaskRunners.h"
#include "core/workers/WorkerLoaderProxy.h"
#include "core/workers/WorkerThreadLifecycleObserver.h"
#include "platform/LifecycleNotifier.h"
@@ -107,7 +107,7 @@ class CORE_EXPORT WorkerThread : public WebThread::TaskObserver {
virtual ~WorkerThread();
// Called on the main thread.
- void start(std::unique_ptr<WorkerThreadStartupData>, ParentFrameTaskRunners*);
+ void start(std::unique_ptr<WorkerThreadStartupData>, FrameTaskRunnersHolder*);
void terminate();
// Called on the main thread. Internally calls terminateInternal() and wait
@@ -171,10 +171,6 @@ class CORE_EXPORT WorkerThread : public WebThread::TaskObserver {
void waitForShutdownForTesting() { m_shutdownEvent->wait(); }
- ParentFrameTaskRunners* getParentFrameTaskRunners() const {
- return m_parentFrameTaskRunners.get();
- }
-
protected:
WorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&);
@@ -248,7 +244,8 @@ class CORE_EXPORT WorkerThread : public WebThread::TaskObserver {
// hasn't been notified to the calling thread.
bool isInShutdown();
- void initializeOnWorkerThread(std::unique_ptr<WorkerThreadStartupData>);
+ void initializeOnWorkerThread(std::unique_ptr<WorkerThreadStartupData>,
+ FrameTaskRunnersHolder*);
void prepareForShutdownOnWorkerThread();
void performShutdownOnWorkerThread();
void performTaskOnWorkerThread(std::unique_ptr<CrossThreadClosure>);
@@ -291,7 +288,7 @@ class CORE_EXPORT WorkerThread : public WebThread::TaskObserver {
RefPtr<WorkerLoaderProxy> m_workerLoaderProxy;
WorkerReportingProxy& m_workerReportingProxy;
- CrossThreadPersistent<ParentFrameTaskRunners> m_parentFrameTaskRunners;
+ Persistent<FrameTaskRunnersHolder> m_frameTaskRunners;
// This lock protects |m_globalScope|, |m_requestedToTerminate|,
// |m_threadState|, |m_runningDebuggerTask| and |m_exitCode|.
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp ('k') | third_party/WebKit/Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698