OLD | NEW |
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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 class DedicatedWorkerThread final : public WorkerThread { | 40 class DedicatedWorkerThread final : public WorkerThread { |
41 public: | 41 public: |
42 static PassOwnPtr<DedicatedWorkerThread> create(PassRefPtr<WorkerLoaderProxy
>, InProcessWorkerObjectProxy&, double timeOrigin); | 42 static PassOwnPtr<DedicatedWorkerThread> create(PassRefPtr<WorkerLoaderProxy
>, InProcessWorkerObjectProxy&, double timeOrigin); |
43 ~DedicatedWorkerThread() override; | 43 ~DedicatedWorkerThread() override; |
44 | 44 |
45 WorkerBackingThread& workerBackingThread() override { return *m_workerBackin
gThread; } | 45 WorkerBackingThread& workerBackingThread() override { return *m_workerBackin
gThread; } |
46 InProcessWorkerObjectProxy& workerObjectProxy() const { return m_workerObjec
tProxy; } | 46 InProcessWorkerObjectProxy& workerObjectProxy() const { return m_workerObjec
tProxy; } |
47 | 47 |
48 protected: | 48 protected: |
49 WorkerGlobalScope* createWorkerGlobalScope(PassOwnPtr<WorkerThreadStartupDat
a>) override; | 49 WorkerGlobalScope* createWorkerGlobalScope(WorkerThreadStartupData*) overrid
e; |
50 void postInitialize() override; | 50 void postInitialize() override; |
51 | 51 |
52 private: | 52 private: |
53 DedicatedWorkerThread(PassRefPtr<WorkerLoaderProxy>, InProcessWorkerObjectPr
oxy&, double timeOrigin); | 53 DedicatedWorkerThread(PassRefPtr<WorkerLoaderProxy>, InProcessWorkerObjectPr
oxy&, double timeOrigin); |
54 | 54 |
55 OwnPtr<WorkerBackingThread> m_workerBackingThread; | 55 OwnPtr<WorkerBackingThread> m_workerBackingThread; |
56 InProcessWorkerObjectProxy& m_workerObjectProxy; | 56 InProcessWorkerObjectProxy& m_workerObjectProxy; |
57 double m_timeOrigin; | 57 double m_timeOrigin; |
58 }; | 58 }; |
59 | 59 |
60 } // namespace blink | 60 } // namespace blink |
61 | 61 |
62 #endif // DedicatedWorkerThread_h | 62 #endif // DedicatedWorkerThread_h |
OLD | NEW |