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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 23 matching lines...) Expand all
34 #include "core/workers/WorkerThread.h" 34 #include "core/workers/WorkerThread.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class WorkerObjectProxy; 38 class WorkerObjectProxy;
39 class WorkerThreadStartupData; 39 class WorkerThreadStartupData;
40 40
41 class DedicatedWorkerThread final : public WorkerThread { 41 class DedicatedWorkerThread final : public WorkerThread {
42 public: 42 public:
43 static PassOwnPtr<DedicatedWorkerThread> create(PassRefPtr<WorkerLoaderProxy >, WorkerObjectProxy&, double timeOrigin); 43 static PassOwnPtr<DedicatedWorkerThread> create(PassRefPtr<WorkerLoaderProxy >, WorkerObjectProxy&, double timeOrigin);
44 ~DedicatedWorkerThread() override;
45
46 WorkerBackingThread& workerBackingThread() override { return *m_workerBackin gThread; }
44 WorkerObjectProxy& workerObjectProxy() const { return m_workerObjectProxy; } 47 WorkerObjectProxy& workerObjectProxy() const { return m_workerObjectProxy; }
45 ~DedicatedWorkerThread() override;
46 48
47 protected: 49 protected:
48 WorkerGlobalScope* createWorkerGlobalScope(PassOwnPtr<WorkerThreadStartupDat a>) override; 50 WorkerGlobalScope* createWorkerGlobalScope(PassOwnPtr<WorkerThreadStartupDat a>) override;
49 void postInitialize() override; 51 void postInitialize() override;
50 WebThreadSupportingGC& backingThread() override;
51 52
52 private: 53 private:
53 DedicatedWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, dou ble timeOrigin); 54 DedicatedWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, dou ble timeOrigin);
54 55
56 OwnPtr<WorkerBackingThread> m_workerBackingThread;
55 WorkerObjectProxy& m_workerObjectProxy; 57 WorkerObjectProxy& m_workerObjectProxy;
56 double m_timeOrigin; 58 double m_timeOrigin;
57 OwnPtr<WebThreadSupportingGC> m_thread;
58 }; 59 };
59 60
60 } // namespace blink 61 } // namespace blink
61 62
62 #endif // DedicatedWorkerThread_h 63 #endif // DedicatedWorkerThread_h
OLDNEW
« 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