OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 WorkerNavigatorNetworkInformation_h | 5 #ifndef WorkerNavigatorNetworkInformation_h |
6 #define WorkerNavigatorNetworkInformation_h | 6 #define WorkerNavigatorNetworkInformation_h |
7 | 7 |
8 #include "core/workers/WorkerNavigator.h" | 8 #include "core/workers/WorkerNavigator.h" |
9 #include "platform/Supplementable.h" | 9 #include "platform/Supplementable.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
| 13 class ExecutionContext; |
13 class NetworkInformation; | 14 class NetworkInformation; |
14 class ScriptState; | 15 class ScriptState; |
15 class WorkerNavigator; | 16 class WorkerNavigator; |
16 | 17 |
17 class WorkerNavigatorNetworkInformation final | 18 class WorkerNavigatorNetworkInformation final |
18 : public GarbageCollected<WorkerNavigatorNetworkInformation>, | 19 : public GarbageCollected<WorkerNavigatorNetworkInformation>, |
19 public Supplement<WorkerNavigator> { | 20 public Supplement<WorkerNavigator> { |
20 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigatorNetworkInformation); | 21 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigatorNetworkInformation); |
21 | 22 |
22 public: | 23 public: |
(...skipping 11 matching lines...) Expand all Loading... |
34 private: | 35 private: |
35 WorkerNavigatorNetworkInformation(WorkerNavigator&, ExecutionContext*); | 36 WorkerNavigatorNetworkInformation(WorkerNavigator&, ExecutionContext*); |
36 NetworkInformation* connection(ExecutionContext*); | 37 NetworkInformation* connection(ExecutionContext*); |
37 | 38 |
38 Member<NetworkInformation> m_connection; | 39 Member<NetworkInformation> m_connection; |
39 }; | 40 }; |
40 | 41 |
41 } // namespace blink | 42 } // namespace blink |
42 | 43 |
43 #endif // WorkerNavigatorNetworkInformation_h | 44 #endif // WorkerNavigatorNetworkInformation_h |
OLD | NEW |