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

Side by Side Diff: third_party/WebKit/Source/core/workers/DedicatedWorkerThread.h

Issue 1897193002: Worker: Rename worker components to clarify what they work for (part 2) (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 12 matching lines...) Expand all
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 #ifndef DedicatedWorkerThread_h 30 #ifndef DedicatedWorkerThread_h
31 #define DedicatedWorkerThread_h 31 #define DedicatedWorkerThread_h
32 32
33 #include "core/frame/csp/ContentSecurityPolicy.h"
34 #include "core/workers/WorkerThread.h" 33 #include "core/workers/WorkerThread.h"
35 34
36 namespace blink { 35 namespace blink {
37 36
38 class WorkerObjectProxy; 37 class InProcessWorkerObjectProxy;
39 class WorkerThreadStartupData; 38 class WorkerThreadStartupData;
40 39
41 class DedicatedWorkerThread final : public WorkerThread { 40 class DedicatedWorkerThread final : public WorkerThread {
42 public: 41 public:
43 static PassOwnPtr<DedicatedWorkerThread> create(PassRefPtr<WorkerLoaderProxy >, WorkerObjectProxy&, double timeOrigin); 42 static PassOwnPtr<DedicatedWorkerThread> create(PassRefPtr<WorkerLoaderProxy >, InProcessWorkerObjectProxy&, double timeOrigin);
44 ~DedicatedWorkerThread() override; 43 ~DedicatedWorkerThread() override;
45 44
46 WorkerBackingThread& workerBackingThread() override { return *m_workerBackin gThread; } 45 WorkerBackingThread& workerBackingThread() override { return *m_workerBackin gThread; }
47 WorkerObjectProxy& workerObjectProxy() const { return m_workerObjectProxy; } 46 InProcessWorkerObjectProxy& workerObjectProxy() const { return m_workerObjec tProxy; }
48 47
49 protected: 48 protected:
50 WorkerGlobalScope* createWorkerGlobalScope(PassOwnPtr<WorkerThreadStartupDat a>) override; 49 WorkerGlobalScope* createWorkerGlobalScope(PassOwnPtr<WorkerThreadStartupDat a>) override;
51 void postInitialize() override; 50 void postInitialize() override;
52 51
53 private: 52 private:
54 DedicatedWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, dou ble timeOrigin); 53 DedicatedWorkerThread(PassRefPtr<WorkerLoaderProxy>, InProcessWorkerObjectPr oxy&, double timeOrigin);
55 54
56 OwnPtr<WorkerBackingThread> m_workerBackingThread; 55 OwnPtr<WorkerBackingThread> m_workerBackingThread;
57 WorkerObjectProxy& m_workerObjectProxy; 56 InProcessWorkerObjectProxy& m_workerObjectProxy;
58 double m_timeOrigin; 57 double m_timeOrigin;
59 }; 58 };
60 59
61 } // namespace blink 60 } // namespace blink
62 61
63 #endif // DedicatedWorkerThread_h 62 #endif // DedicatedWorkerThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698