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

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

Issue 1733353004: Introduce WorkerBackingThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/DedicatedWorkerThread.h
diff --git a/third_party/WebKit/Source/core/workers/DedicatedWorkerThread.h b/third_party/WebKit/Source/core/workers/DedicatedWorkerThread.h
index 476d9e13502b342443bef70b559dcc8be12b5593..3d1f9edffa2c101e3dc30db3c5a579b4067cbb7c 100644
--- a/third_party/WebKit/Source/core/workers/DedicatedWorkerThread.h
+++ b/third_party/WebKit/Source/core/workers/DedicatedWorkerThread.h
@@ -41,20 +41,21 @@ class WorkerThreadStartupData;
class DedicatedWorkerThread final : public WorkerThread {
public:
static PassOwnPtr<DedicatedWorkerThread> create(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, double timeOrigin);
- WorkerObjectProxy& workerObjectProxy() const { return m_workerObjectProxy; }
~DedicatedWorkerThread() override;
+ WorkerBackingThread& workerBackingThread() override { return *m_workerBackingThread; }
+ WorkerObjectProxy& workerObjectProxy() const { return m_workerObjectProxy; }
+
protected:
WorkerGlobalScope* createWorkerGlobalScope(PassOwnPtr<WorkerThreadStartupData>) override;
void postInitialize() override;
- WebThreadSupportingGC& backingThread() override;
private:
DedicatedWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, double timeOrigin);
+ OwnPtr<WorkerBackingThread> m_workerBackingThread;
WorkerObjectProxy& m_workerObjectProxy;
double m_timeOrigin;
- OwnPtr<WebThreadSupportingGC> m_thread;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/workers/DedicatedWorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698