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_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "content/browser/worker_host/worker_document_set.h" | 16 #include "content/browser/worker_host/worker_document_set.h" |
17 #include "content/browser/worker_host/worker_storage_partition.h" | 17 #include "content/browser/worker_host/worker_storage_partition.h" |
18 #include "content/public/browser/browser_child_process_host_delegate.h" | 18 #include "content/public/browser/browser_child_process_host_delegate.h" |
19 #include "content/public/browser/browser_child_process_host_iterator.h" | 19 #include "content/public/browser/browser_child_process_host_iterator.h" |
20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
21 #include "ipc/ipc_sender.h" | 21 #include "ipc/ipc_sender.h" |
22 | 22 |
23 class BrowserChildProcessHostImpl; | |
24 class ChromeAppCacheService; | 23 class ChromeAppCacheService; |
25 class IndexedDBContextImpl; | 24 class IndexedDBContextImpl; |
26 | 25 |
27 namespace fileapi { | 26 namespace fileapi { |
28 class FileSystemContext; | 27 class FileSystemContext; |
29 } // namespace fileapi | 28 } // namespace fileapi |
30 | 29 |
31 namespace webkit_database { | 30 namespace webkit_database { |
32 class DatabaseTracker; | 31 class DatabaseTracker; |
33 } // namespace webkit_database | 32 } // namespace webkit_database |
34 | 33 |
35 namespace content { | 34 namespace content { |
| 35 class BrowserChildProcessHostImpl; |
36 class ResourceContext; | 36 class ResourceContext; |
37 class WorkerServiceImpl; | 37 class WorkerServiceImpl; |
38 | 38 |
39 // The WorkerProcessHost is the interface that represents the browser side of | 39 // The WorkerProcessHost is the interface that represents the browser side of |
40 // the browser <-> worker communication channel. There will be one | 40 // the browser <-> worker communication channel. There will be one |
41 // WorkerProcessHost per worker process. Currently each worker runs in its own | 41 // WorkerProcessHost per worker process. Currently each worker runs in its own |
42 // process, but that may change. However, we do assume (by storing a | 42 // process, but that may change. However, we do assume (by storing a |
43 // net::URLRequestContext) that a WorkerProcessHost serves a single | 43 // net::URLRequestContext) that a WorkerProcessHost serves a single |
44 // BrowserContext. | 44 // BrowserContext. |
45 class WorkerProcessHost : public BrowserChildProcessHostDelegate, | 45 class WorkerProcessHost : public BrowserChildProcessHostDelegate, |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 public: | 231 public: |
232 WorkerProcessHostIterator() | 232 WorkerProcessHostIterator() |
233 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( | 233 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( |
234 PROCESS_TYPE_WORKER) { | 234 PROCESS_TYPE_WORKER) { |
235 } | 235 } |
236 }; | 236 }; |
237 | 237 |
238 } // namespace content | 238 } // namespace content |
239 | 239 |
240 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 240 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
OLD | NEW |