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

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

Issue 2015453002: Worker: Reorder function definitions of WorkerThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a8b118f2374ef4ac46345fc811373a67fc18a16b..f6ac76aad9331ab276adf8f5fb2f35ad06928c6a 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.h
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.h
@@ -84,6 +84,7 @@ public:
WaitableEvent* terminationEvent() { return m_terminationEvent.get(); }
bool isCurrentThread();
+
WorkerLoaderProxy* workerLoaderProxy() const
{
RELEASE_ASSERT(m_workerLoaderProxy);
@@ -128,13 +129,12 @@ private:
std::unique_ptr<CrossThreadClosure> createWorkerThreadTask(std::unique_ptr<ExecutionContextTask>, bool isInstrumented);
- // Called on the worker thread.
- void initialize(PassOwnPtr<WorkerThreadStartupData>);
- void performTask(std::unique_ptr<ExecutionContextTask>, bool isInstrumented);
- void prepareForShutdown();
- void performShutdown();
- void runDebuggerTask(std::unique_ptr<CrossThreadClosure>);
- void runDebuggerTaskDontWait();
+ void initializeOnWorkerThread(PassOwnPtr<WorkerThreadStartupData>);
+ void prepareForShutdownOnWorkerThread();
+ void performShutdownOnWorkerThread();
+ void performTaskOnWorkerThread(std::unique_ptr<ExecutionContextTask>, bool isInstrumented);
+ void runDebuggerTaskOnWorkerThread(std::unique_ptr<CrossThreadClosure>);
+ void runDebuggerTaskDontWaitOnWorkerThread();
bool m_started = false;
bool m_terminated = false;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698