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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/netinfo/WorkerNavigatorNetworkInfoConnection.h
diff --git a/Source/modules/netinfo/WorkerNavigatorNetworkInfoConnection.h b/Source/modules/netinfo/WorkerNavigatorNetworkInfoConnection.h
new file mode 100644
index 0000000000000000000000000000000000000000..8ae0b78702e9ac0ffd4f106610164bd1ad6e9520
--- /dev/null
+++ b/Source/modules/netinfo/WorkerNavigatorNetworkInfoConnection.h
@@ -0,0 +1,43 @@
+// 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 WorkerNavigatorNetworkInfoConnection_h
+#define WorkerNavigatorNetworkInfoConnection_h
+
+#include "core/frame/Navigator.h"
+#include "platform/Supplementable.h"
+#include "platform/heap/Handle.h"
+
+namespace WebCore {
+
+class ExecutionContext;
+class Navigator;
+class NetworkInfoConnection;
+class WorkerNavigator;
+
+class WorkerNavigatorNetworkInfoConnection FINAL
+ : public NoBaseWillBeGarbageCollectedFinalized<WorkerNavigatorNetworkInfoConnection>
+ , public WillBeHeapSupplement<WorkerNavigator> {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigatorNetworkInfoConnection);
+
+public:
+ virtual ~WorkerNavigatorNetworkInfoConnection();
+ static WorkerNavigatorNetworkInfoConnection& from(WorkerNavigator&, ExecutionContext*);
+ static WorkerNavigatorNetworkInfoConnection* toWorkerNavigatorNetworkInfoConnection(WorkerNavigator&, ExecutionContext*);
+ static const char* supplementName();
+
+ static NetworkInfoConnection* connection(ExecutionContext*, WorkerNavigator&);
+
+ void trace(Visitor*);
+
+private:
+ explicit WorkerNavigatorNetworkInfoConnection(WorkerNavigator&, ExecutionContext*);
haraken 2014/05/27 22:54:57 Drop explicit.
jkarlin 2014/05/29 13:13:49 Done.
+ NetworkInfoConnection* connection(ExecutionContext*);
+
+ RefPtrWillBeMember<NetworkInfoConnection> m_connection;
+};
+
+} // namespace WebCore
+
+#endif // WorkerNavigatorNetworkInfoConnection_h

Powered by Google App Engine
This is Rietveld 408576698