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> |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 const string16& display_name, | 200 const string16& display_name, |
201 unsigned long estimated_size, | 201 unsigned long estimated_size, |
202 bool* result); | 202 bool* result); |
203 void OnAllowFileSystem(int worker_route_id, | 203 void OnAllowFileSystem(int worker_route_id, |
204 const GURL& url, | 204 const GURL& url, |
205 bool* result); | 205 bool* result); |
206 void OnAllowIndexedDB(int worker_route_id, | 206 void OnAllowIndexedDB(int worker_route_id, |
207 const GURL& url, | 207 const GURL& url, |
208 const string16& name, | 208 const string16& name, |
209 bool* result); | 209 bool* result); |
210 void OnForceKillWorkerProcess(); | |
211 | 210 |
212 // Relays a message to the given endpoint. Takes care of parsing the message | 211 // Relays a message to the given endpoint. Takes care of parsing the message |
213 // if it contains a message port and sending it a valid route id. | 212 // if it contains a message port and sending it a valid route id. |
214 void RelayMessage(const IPC::Message& message, | 213 void RelayMessage(const IPC::Message& message, |
215 WorkerMessageFilter* filter, | 214 WorkerMessageFilter* filter, |
216 int route_id); | 215 int route_id); |
217 | 216 |
218 void ShutdownSocketStreamDispatcherHostIfNecessary(); | 217 void ShutdownSocketStreamDispatcherHostIfNecessary(); |
219 | 218 |
220 virtual bool CanShutdown() OVERRIDE; | 219 virtual bool CanShutdown() OVERRIDE; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 public: | 254 public: |
256 WorkerProcessHostIterator() | 255 WorkerProcessHostIterator() |
257 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( | 256 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( |
258 PROCESS_TYPE_WORKER) { | 257 PROCESS_TYPE_WORKER) { |
259 } | 258 } |
260 }; | 259 }; |
261 | 260 |
262 } // namespace content | 261 } // namespace content |
263 | 262 |
264 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 263 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
OLD | NEW |