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 NavigatorNetworkInfoConnection_h | |
| 6 #define NavigatorNetworkInfoConnection_h | |
| 7 | |
| 8 #include "core/frame/Navigator.h" | |
|
adamk
2014/05/27 21:44:27
I'll bet you don't need this include, since you ha
jkarlin
2014/05/28 13:31:30
Done.
| |
| 9 #include "platform/Supplementable.h" | |
| 10 #include "platform/heap/Handle.h" | |
| 11 | |
| 12 namespace WebCore { | |
| 13 | |
| 14 class Navigator; | |
| 15 class NetworkInfoConnection; | |
| 16 | |
| 17 class NavigatorNetworkInfoConnection FINAL | |
| 18 : public NoBaseWillBeGarbageCollectedFinalized<NavigatorNetworkInfoConnectio n> | |
| 19 , public WillBeHeapSupplement<Navigator> | |
| 20 , DOMWindowProperty { | |
| 21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorNetworkInfoConnection); | |
| 22 | |
| 23 public: | |
| 24 virtual ~NavigatorNetworkInfoConnection(); | |
| 25 static NavigatorNetworkInfoConnection& from(Navigator&); | |
| 26 static NavigatorNetworkInfoConnection* toNavigatorNetworkInfoConnection(Navi gator&); | |
| 27 static const char* supplementName(); | |
| 28 | |
| 29 static NetworkInfoConnection* connection(Navigator&); | |
| 30 | |
| 31 void trace(Visitor*); | |
|
adamk
2014/05/27 21:44:27
Please preface this with "virtual" and add an OVER
jkarlin
2014/05/28 13:31:30
Done.
| |
| 32 | |
| 33 private: | |
| 34 explicit NavigatorNetworkInfoConnection(Navigator&); | |
| 35 NetworkInfoConnection* connection(); | |
| 36 | |
| 37 RefPtrWillBeMember<NetworkInfoConnection> m_connection; | |
| 38 }; | |
| 39 | |
| 40 } // namespace WebCore | |
| 41 | |
| 42 #endif // NavigatorNetworkInfoConnection_h | |
| OLD | NEW |