| 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 BlobDispatcherHost; |
| 21 class ChromeURLRequestContext; | 22 class ChromeURLRequestContext; |
| 22 class ChromeURLRequestContextGetter; | 23 class ChromeURLRequestContextGetter; |
| 23 class DatabaseDispatcherHost; | 24 class DatabaseDispatcherHost; |
| 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 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 void OnCreateWorker(const ViewHostMsg_CreateWorker_Params& params, | 188 void OnCreateWorker(const ViewHostMsg_CreateWorker_Params& params, |
| 188 int* route_id); | 189 int* route_id); |
| 189 void OnCancelCreateDedicatedWorker(int route_id); | 190 void OnCancelCreateDedicatedWorker(int route_id); |
| 190 void OnForwardToWorker(const IPC::Message& message); | 191 void OnForwardToWorker(const IPC::Message& message); |
| 191 | 192 |
| 192 Instances instances_; | 193 Instances instances_; |
| 193 | 194 |
| 194 scoped_refptr<ChromeURLRequestContext> request_context_; | 195 scoped_refptr<ChromeURLRequestContext> request_context_; |
| 195 scoped_ptr<AppCacheDispatcherHost> appcache_dispatcher_host_; | 196 scoped_ptr<AppCacheDispatcherHost> appcache_dispatcher_host_; |
| 196 scoped_refptr<DatabaseDispatcherHost> db_dispatcher_host_; | 197 scoped_refptr<DatabaseDispatcherHost> db_dispatcher_host_; |
| 198 scoped_ptr<BlobDispatcherHost> blob_dispatcher_host_; |
| 197 | 199 |
| 198 // A callback to create a routing id for the associated worker process. | 200 // A callback to create a routing id for the associated worker process. |
| 199 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_; | 201 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_; |
| 200 | 202 |
| 201 DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost); | 203 DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost); |
| 202 }; | 204 }; |
| 203 | 205 |
| 204 #endif // CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 206 #endif // CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
| OLD | NEW |