OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef DedicatedWorkerMessagingProxy_h | 5 #ifndef DedicatedWorkerMessagingProxy_h |
6 #define DedicatedWorkerMessagingProxy_h | 6 #define DedicatedWorkerMessagingProxy_h |
7 | 7 |
| 8 #include <memory> |
8 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
9 #include "core/workers/InProcessWorkerMessagingProxy.h" | 10 #include "core/workers/InProcessWorkerMessagingProxy.h" |
10 #include <memory> | |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class CORE_EXPORT DedicatedWorkerMessagingProxy final | 14 class CORE_EXPORT DedicatedWorkerMessagingProxy final |
15 : public InProcessWorkerMessagingProxy { | 15 : public InProcessWorkerMessagingProxy { |
16 WTF_MAKE_NONCOPYABLE(DedicatedWorkerMessagingProxy); | 16 WTF_MAKE_NONCOPYABLE(DedicatedWorkerMessagingProxy); |
17 USING_FAST_MALLOC(DedicatedWorkerMessagingProxy); | 17 USING_FAST_MALLOC(DedicatedWorkerMessagingProxy); |
18 | 18 |
19 public: | 19 public: |
20 DedicatedWorkerMessagingProxy(InProcessWorkerBase*, WorkerClients*); | 20 DedicatedWorkerMessagingProxy(InProcessWorkerBase*, WorkerClients*); |
21 ~DedicatedWorkerMessagingProxy() override; | 21 ~DedicatedWorkerMessagingProxy() override; |
22 | 22 |
23 std::unique_ptr<WorkerThread> CreateWorkerThread(double origin_time) override; | 23 std::unique_ptr<WorkerThread> CreateWorkerThread(double origin_time) override; |
24 | 24 |
25 bool IsAtomicsWaitAllowed() override; | 25 bool IsAtomicsWaitAllowed() override; |
26 }; | 26 }; |
27 | 27 |
28 } // namespace blink | 28 } // namespace blink |
29 | 29 |
30 #endif // DedicatedWorkerMessagingProxy_h | 30 #endif // DedicatedWorkerMessagingProxy_h |
OLD | NEW |