OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ | 5 #ifndef CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ |
6 #define CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ | 6 #define CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/worker/websharedworkerclient_proxy.h" | 9 #include "content/worker/websharedworkerclient_proxy.h" |
10 #include "content/worker/worker_webapplicationcachehost_impl.h" | 10 #include "content/worker/worker_webapplicationcachehost_impl.h" |
11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
12 #include "ipc/ipc_channel.h" | 12 #include "ipc/ipc_channel.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h" |
14 | 14 |
15 namespace WebKit { | 15 namespace WebKit { |
16 class WebSharedWorker; | 16 class WebSharedWorker; |
17 } | 17 } |
18 | 18 |
| 19 namespace content { |
| 20 |
19 class SharedWorkerDevToolsAgent; | 21 class SharedWorkerDevToolsAgent; |
20 | 22 |
21 // This class creates a WebSharedWorker, and translates incoming IPCs to the | 23 // This class creates a WebSharedWorker, and translates incoming IPCs to the |
22 // appropriate WebSharedWorker APIs. | 24 // appropriate WebSharedWorker APIs. |
23 class WebSharedWorkerStub : public IPC::Listener { | 25 class WebSharedWorkerStub : public IPC::Listener { |
24 public: | 26 public: |
25 WebSharedWorkerStub(const string16& name, int route_id, | 27 WebSharedWorkerStub(const string16& name, int route_id, |
26 const WorkerAppCacheInitInfo& appcache_init_info); | 28 const WorkerAppCacheInitInfo& appcache_init_info); |
27 | 29 |
28 // IPC::Listener implementation. | 30 // IPC::Listener implementation. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 GURL url_; | 72 GURL url_; |
71 scoped_ptr<SharedWorkerDevToolsAgent> worker_devtools_agent_; | 73 scoped_ptr<SharedWorkerDevToolsAgent> worker_devtools_agent_; |
72 | 74 |
73 typedef std::pair<int, int> PendingConnectInfo; | 75 typedef std::pair<int, int> PendingConnectInfo; |
74 typedef std::vector<PendingConnectInfo> PendingConnectInfoList; | 76 typedef std::vector<PendingConnectInfo> PendingConnectInfoList; |
75 PendingConnectInfoList pending_connects_; | 77 PendingConnectInfoList pending_connects_; |
76 | 78 |
77 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub); | 79 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub); |
78 }; | 80 }; |
79 | 81 |
| 82 } // namespace content |
| 83 |
80 #endif // CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ | 84 #endif // CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ |
OLD | NEW |