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

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

Issue 291203002: Adds NetInfo v3 Web API to Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@netinfo1
Patch Set: Simplified layout tests 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
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

Powered by Google App Engine
This is Rietveld 408576698