| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 int parent_appcache_host_id_; | 110 int parent_appcache_host_id_; |
| 111 int64 main_resource_appcache_id_; | 111 int64 main_resource_appcache_id_; |
| 112 FilterList filters_; | 112 FilterList filters_; |
| 113 scoped_refptr<WorkerDocumentSet> worker_document_set_; | 113 scoped_refptr<WorkerDocumentSet> worker_document_set_; |
| 114 const content::ResourceContext* const resource_context_; | 114 const content::ResourceContext* const resource_context_; |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 WorkerProcessHost( | 117 WorkerProcessHost( |
| 118 const content::ResourceContext* resource_context, | 118 const content::ResourceContext* resource_context, |
| 119 ResourceDispatcherHost* resource_dispatcher_host); | 119 ResourceDispatcherHost* resource_dispatcher_host); |
| 120 ~WorkerProcessHost(); | 120 virtual ~WorkerProcessHost(); |
| 121 | 121 |
| 122 // Starts the process. Returns true iff it succeeded. | 122 // Starts the process. Returns true iff it succeeded. |
| 123 // |render_process_id| is the renderer process responsible for starting this | 123 // |render_process_id| is the renderer process responsible for starting this |
| 124 // worker. | 124 // worker. |
| 125 bool Init(int render_process_id); | 125 bool Init(int render_process_id); |
| 126 | 126 |
| 127 // Creates a worker object in the process. | 127 // Creates a worker object in the process. |
| 128 void CreateWorker(const WorkerInstance& instance); | 128 void CreateWorker(const WorkerInstance& instance); |
| 129 | 129 |
| 130 // Returns true iff the given message from a renderer process was forwarded to | 130 // Returns true iff the given message from a renderer process was forwarded to |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // keep this around since we'll use it when forward messages to the worker | 191 // keep this around since we'll use it when forward messages to the worker |
| 192 // process. | 192 // process. |
| 193 scoped_refptr<WorkerMessageFilter> worker_message_filter_; | 193 scoped_refptr<WorkerMessageFilter> worker_message_filter_; |
| 194 | 194 |
| 195 ResourceDispatcherHost* const resource_dispatcher_host_; | 195 ResourceDispatcherHost* const resource_dispatcher_host_; |
| 196 | 196 |
| 197 DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost); | 197 DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost); |
| 198 }; | 198 }; |
| 199 | 199 |
| 200 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 200 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
| OLD | NEW |