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 WorkerNavigatorServices_h | 5 #ifndef WorkerNavigatorServices_h |
6 #define WorkerNavigatorServices_h | 6 #define WorkerNavigatorServices_h |
7 | 7 |
| 8 #include "modules/ModulesExport.h" |
8 #include "platform/Supplementable.h" | 9 #include "platform/Supplementable.h" |
9 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
10 | 11 |
11 namespace blink { | 12 namespace blink { |
12 | 13 |
13 class ExecutionContext; | 14 class ExecutionContext; |
14 class ServicePortCollection; | 15 class ServicePortCollection; |
15 class WorkerNavigator; | 16 class WorkerNavigator; |
16 | 17 |
17 class WorkerNavigatorServices final : public GarbageCollectedFinalized<WorkerNav
igatorServices>, public HeapSupplement<WorkerNavigator> { | 18 class MODULES_EXPORT WorkerNavigatorServices final : public GarbageCollectedFina
lized<WorkerNavigatorServices>, public HeapSupplement<WorkerNavigator> { |
18 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigatorServices); | 19 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigatorServices); |
19 WTF_MAKE_NONCOPYABLE(WorkerNavigatorServices); | 20 WTF_MAKE_NONCOPYABLE(WorkerNavigatorServices); |
20 public: | 21 public: |
21 virtual ~WorkerNavigatorServices(); | 22 virtual ~WorkerNavigatorServices(); |
22 static WorkerNavigatorServices& from(WorkerNavigator&); | 23 static WorkerNavigatorServices& from(WorkerNavigator&); |
23 | 24 |
24 static ServicePortCollection* services(ExecutionContext*, WorkerNavigator&); | 25 static ServicePortCollection* services(ExecutionContext*, WorkerNavigator&); |
25 ServicePortCollection* services(ExecutionContext*); | 26 ServicePortCollection* services(ExecutionContext*); |
26 | 27 |
27 DECLARE_VIRTUAL_TRACE(); | 28 DECLARE_VIRTUAL_TRACE(); |
28 | 29 |
29 private: | 30 private: |
30 WorkerNavigatorServices(); | 31 WorkerNavigatorServices(); |
31 static const char* supplementName(); | 32 static const char* supplementName(); |
32 | 33 |
33 Member<ServicePortCollection> m_services; | 34 Member<ServicePortCollection> m_services; |
34 }; | 35 }; |
35 | 36 |
36 } // namespace blink | 37 } // namespace blink |
37 | 38 |
38 #endif // WorkerNavigatorServices_h | 39 #endif // WorkerNavigatorServices_h |
OLD | NEW |