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

Side by Side 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698