OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
6 #define CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "chrome/browser/browser_child_process_host.h" | 14 #include "chrome/browser/browser_child_process_host.h" |
15 #include "chrome/browser/net/chrome_url_request_context.h" | 15 #include "chrome/browser/net/chrome_url_request_context.h" |
16 #include "chrome/browser/worker_host/worker_document_set.h" | 16 #include "chrome/browser/worker_host/worker_document_set.h" |
17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
18 #include "ipc/ipc_channel.h" | 18 #include "ipc/ipc_channel.h" |
19 | 19 |
20 class AppCacheDispatcherHost; | 20 class AppCacheDispatcherHost; |
21 class ChromeURLRequestContext; | 21 class ChromeURLRequestContext; |
22 class ChromeURLRequestContextGetter; | 22 class ChromeURLRequestContextGetter; |
23 class DatabaseDispatcherHost; | 23 class DatabaseDispatcherHost; |
| 24 class FileSystemDispatcherHost; |
24 namespace webkit_database { | 25 namespace webkit_database { |
25 class DatabaseTracker; | 26 class DatabaseTracker; |
26 } // namespace webkit_database | 27 } // namespace webkit_database |
27 | 28 |
28 struct ViewHostMsg_CreateWorker_Params; | 29 struct ViewHostMsg_CreateWorker_Params; |
29 | 30 |
30 // The WorkerProcessHost is the interface that represents the browser side of | 31 // The WorkerProcessHost is the interface that represents the browser side of |
31 // the browser <-> worker communication channel. There will be one | 32 // the browser <-> worker communication channel. There will be one |
32 // WorkerProcessHost per worker process. Currently each worker runs in its own | 33 // WorkerProcessHost per worker process. Currently each worker runs in its own |
33 // process, but that may change. However, we do assume [by storing a | 34 // process, but that may change. However, we do assume [by storing a |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 void OnCreateWorker(const ViewHostMsg_CreateWorker_Params& params, | 189 void OnCreateWorker(const ViewHostMsg_CreateWorker_Params& params, |
189 int* route_id); | 190 int* route_id); |
190 void OnCancelCreateDedicatedWorker(int route_id); | 191 void OnCancelCreateDedicatedWorker(int route_id); |
191 void OnForwardToWorker(const IPC::Message& message); | 192 void OnForwardToWorker(const IPC::Message& message); |
192 | 193 |
193 Instances instances_; | 194 Instances instances_; |
194 | 195 |
195 scoped_refptr<ChromeURLRequestContext> request_context_; | 196 scoped_refptr<ChromeURLRequestContext> request_context_; |
196 scoped_ptr<AppCacheDispatcherHost> appcache_dispatcher_host_; | 197 scoped_ptr<AppCacheDispatcherHost> appcache_dispatcher_host_; |
197 scoped_refptr<DatabaseDispatcherHost> db_dispatcher_host_; | 198 scoped_refptr<DatabaseDispatcherHost> db_dispatcher_host_; |
| 199 scoped_refptr<FileSystemDispatcherHost> file_system_dispatcher_host_; |
198 | 200 |
199 // A callback to create a routing id for the associated worker process. | 201 // A callback to create a routing id for the associated worker process. |
200 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_; | 202 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_; |
201 | 203 |
202 DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost); | 204 DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost); |
203 }; | 205 }; |
204 | 206 |
205 #endif // CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 207 #endif // CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
OLD | NEW |