Chromium Code Reviews| Index: Source/modules/netinfo/NavigatorNetworkInfoConnection.h |
| diff --git a/Source/modules/netinfo/NavigatorNetworkInfoConnection.h b/Source/modules/netinfo/NavigatorNetworkInfoConnection.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a8ee2e0f4d696a48032395a3fd522debfaf41ec4 |
| --- /dev/null |
| +++ b/Source/modules/netinfo/NavigatorNetworkInfoConnection.h |
| @@ -0,0 +1,42 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NavigatorNetworkInfoConnection_h |
| +#define NavigatorNetworkInfoConnection_h |
| + |
| +#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.
|
| +#include "platform/Supplementable.h" |
| +#include "platform/heap/Handle.h" |
| + |
| +namespace WebCore { |
| + |
| +class Navigator; |
| +class NetworkInfoConnection; |
| + |
| +class NavigatorNetworkInfoConnection FINAL |
| + : public NoBaseWillBeGarbageCollectedFinalized<NavigatorNetworkInfoConnection> |
| + , public WillBeHeapSupplement<Navigator> |
| + , DOMWindowProperty { |
| + WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorNetworkInfoConnection); |
| + |
| +public: |
| + virtual ~NavigatorNetworkInfoConnection(); |
| + static NavigatorNetworkInfoConnection& from(Navigator&); |
| + static NavigatorNetworkInfoConnection* toNavigatorNetworkInfoConnection(Navigator&); |
| + static const char* supplementName(); |
| + |
| + static NetworkInfoConnection* connection(Navigator&); |
| + |
| + 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.
|
| + |
| +private: |
| + explicit NavigatorNetworkInfoConnection(Navigator&); |
| + NetworkInfoConnection* connection(); |
| + |
| + RefPtrWillBeMember<NetworkInfoConnection> m_connection; |
| +}; |
| + |
| +} // namespace WebCore |
| + |
| +#endif // NavigatorNetworkInfoConnection_h |