Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1383)

Unified Diff: Source/modules/netinfo/NavigatorNetworkInformation.h

Issue 291203002: Adds NetInfo v3 Web API to Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@netinfo1
Patch Set: Comment typo Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/netinfo/NavigatorNetworkInformation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/netinfo/NavigatorNetworkInformation.h
diff --git a/Source/modules/netinfo/NavigatorNetworkInformation.h b/Source/modules/netinfo/NavigatorNetworkInformation.h
new file mode 100644
index 0000000000000000000000000000000000000000..48698c1e10dd052105dd157dad6ff91cd4aeadd1
--- /dev/null
+++ b/Source/modules/netinfo/NavigatorNetworkInformation.h
@@ -0,0 +1,41 @@
+// 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 NavigatorNetworkInformation_h
+#define NavigatorNetworkInformation_h
+
+#include "core/frame/DOMWindowProperty.h"
+#include "platform/Supplementable.h"
+
+namespace WebCore {
+
+class Navigator;
+class NetworkInformation;
+
+class NavigatorNetworkInformation FINAL
+ : public NoBaseWillBeGarbageCollectedFinalized<NavigatorNetworkInformation>
+ , public WillBeHeapSupplement<Navigator>
+ , DOMWindowProperty {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorNetworkInformation);
+
+public:
+ virtual ~NavigatorNetworkInformation();
+ static NavigatorNetworkInformation& from(Navigator&);
+ static NavigatorNetworkInformation* toNavigatorNetworkInformation(Navigator&);
+ static const char* supplementName();
+
+ static NetworkInformation* connection(Navigator&);
+
+ virtual void trace(Visitor*) OVERRIDE;
+
+private:
+ explicit NavigatorNetworkInformation(Navigator&);
+ NetworkInformation* connection();
+
+ RefPtrWillBeMember<NetworkInformation> m_connection;
+};
+
+} // namespace WebCore
+
+#endif // NavigatorNetworkInformation_h
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/netinfo/NavigatorNetworkInformation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698