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 |