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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 void OnWorkerContextDestroyed(int worker_route_id); | 217 void OnWorkerContextDestroyed(int worker_route_id); |
218 void OnWorkerScriptLoaded(int worker_route_id); | 218 void OnWorkerScriptLoaded(int worker_route_id); |
219 void OnWorkerScriptLoadFailed(int worker_route_id); | 219 void OnWorkerScriptLoadFailed(int worker_route_id); |
220 void OnWorkerConnected(int message_port_id, int worker_route_id); | 220 void OnWorkerConnected(int message_port_id, int worker_route_id); |
221 void OnAllowDatabase(int worker_route_id, | 221 void OnAllowDatabase(int worker_route_id, |
222 const GURL& url, | 222 const GURL& url, |
223 const base::string16& name, | 223 const base::string16& name, |
224 const base::string16& display_name, | 224 const base::string16& display_name, |
225 unsigned long estimated_size, | 225 unsigned long estimated_size, |
226 bool* result); | 226 bool* result); |
227 void OnAllowFileSystem(int worker_route_id, | 227 void OnRequestFileSystemAccessSync(int worker_route_id, |
228 const GURL& url, | 228 const GURL& url, |
229 bool* result); | 229 bool* result); |
230 void OnAllowIndexedDB(int worker_route_id, | 230 void OnAllowIndexedDB(int worker_route_id, |
231 const GURL& url, | 231 const GURL& url, |
232 const base::string16& name, | 232 const base::string16& name, |
233 bool* result); | 233 bool* result); |
234 void OnForceKillWorkerProcess(); | 234 void OnForceKillWorkerProcess(); |
235 | 235 |
236 // Relays a message to the given endpoint. Takes care of parsing the message | 236 // Relays a message to the given endpoint. Takes care of parsing the message |
237 // if it contains a message port and sending it a valid route id. | 237 // if it contains a message port and sending it a valid route id. |
238 void RelayMessage(const IPC::Message& message, | 238 void RelayMessage(const IPC::Message& message, |
239 WorkerMessageFilter* incoming_filter, | 239 WorkerMessageFilter* incoming_filter, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 public: | 279 public: |
280 WorkerProcessHostIterator() | 280 WorkerProcessHostIterator() |
281 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( | 281 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( |
282 PROCESS_TYPE_WORKER) { | 282 PROCESS_TYPE_WORKER) { |
283 } | 283 } |
284 }; | 284 }; |
285 | 285 |
286 } // namespace content | 286 } // namespace content |
287 | 287 |
288 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 288 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
OLD | NEW |