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

Side by Side Diff: Source/modules/netinfo/WorkerNavigatorNetworkInfoConnection.h

Issue 299883004: Adds WebWorker support to NetInfo v3. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@netinfo3
Patch Set: Simplify layout test 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 WorkerNavigatorNetworkInfoConnection_h
6 #define WorkerNavigatorNetworkInfoConnection_h
7
8 #include "core/frame/Navigator.h"
9 #include "platform/Supplementable.h"
10 #include "platform/heap/Handle.h"
11
12 namespace WebCore {
13
14 class ExecutionContext;
15 class Navigator;
16 class NetworkInfoConnection;
17 class WorkerNavigator;
18
19 class WorkerNavigatorNetworkInfoConnection FINAL
20 : public NoBaseWillBeGarbageCollectedFinalized<WorkerNavigatorNetworkInfoCon nection>
21 , public WillBeHeapSupplement<WorkerNavigator> {
22 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigatorNetworkInfoConnection);
23
24 public:
25 virtual ~WorkerNavigatorNetworkInfoConnection();
26 static WorkerNavigatorNetworkInfoConnection& from(WorkerNavigator&, Executio nContext*);
27 static WorkerNavigatorNetworkInfoConnection* toWorkerNavigatorNetworkInfoCon nection(WorkerNavigator&, ExecutionContext*);
28 static const char* supplementName();
29
30 static NetworkInfoConnection* connection(ExecutionContext*, WorkerNavigator& );
31
32 void trace(Visitor*);
33
34 private:
35 explicit WorkerNavigatorNetworkInfoConnection(WorkerNavigator&, ExecutionCon text*);
haraken 2014/05/27 22:54:57 Drop explicit.
jkarlin 2014/05/29 13:13:49 Done.
36 NetworkInfoConnection* connection(ExecutionContext*);
37
38 RefPtrWillBeMember<NetworkInfoConnection> m_connection;
39 };
40
41 } // namespace WebCore
42
43 #endif // WorkerNavigatorNetworkInfoConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698