Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WorkerNavigatorNetworkInfoConnection_h | |
| 6 #define WorkerNavigatorNetworkInfoConnection_h | |
| 7 | |
| 8 #include "core/frame/Navigator.h" | |
| 9 #include "platform/Supplementable.h" | |
| 10 #include "platform/heap/Handle.h" | |
| 11 | |
| 12 namespace WebCore { | |
| 13 | |
| 14 class ExecutionContext; | |
| 15 class Navigator; | |
| 16 class NetworkInfoConnection; | |
| 17 class WorkerNavigator; | |
| 18 | |
| 19 class WorkerNavigatorNetworkInfoConnection FINAL | |
| 20 : public NoBaseWillBeGarbageCollectedFinalized<WorkerNavigatorNetworkInfoCon nection> | |
| 21 , public WillBeHeapSupplement<WorkerNavigator> { | |
| 22 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigatorNetworkInfoConnection); | |
| 23 | |
| 24 public: | |
| 25 virtual ~WorkerNavigatorNetworkInfoConnection(); | |
| 26 static WorkerNavigatorNetworkInfoConnection& from(WorkerNavigator&, Executio nContext*); | |
| 27 static WorkerNavigatorNetworkInfoConnection* toWorkerNavigatorNetworkInfoCon nection(WorkerNavigator&, ExecutionContext*); | |
| 28 static const char* supplementName(); | |
| 29 | |
| 30 static NetworkInfoConnection* connection(ExecutionContext*, WorkerNavigator& ); | |
| 31 | |
| 32 void trace(Visitor*); | |
| 33 | |
| 34 private: | |
| 35 explicit WorkerNavigatorNetworkInfoConnection(WorkerNavigator&, ExecutionCon text*); | |
|
haraken
2014/05/27 22:54:57
Drop explicit.
jkarlin
2014/05/29 13:13:49
Done.
| |
| 36 NetworkInfoConnection* connection(ExecutionContext*); | |
| 37 | |
| 38 RefPtrWillBeMember<NetworkInfoConnection> m_connection; | |
| 39 }; | |
| 40 | |
| 41 } // namespace WebCore | |
| 42 | |
| 43 #endif // WorkerNavigatorNetworkInfoConnection_h | |
| OLD | NEW |