Chromium Code Reviews| 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/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/process/process_handle.h" | |
| 15 #include "content/browser/worker_host/worker_document_set.h" | 16 #include "content/browser/worker_host/worker_document_set.h" |
| 16 #include "content/browser/worker_host/worker_storage_partition.h" | 17 #include "content/browser/worker_host/worker_storage_partition.h" |
| 17 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
| 18 #include "content/public/browser/browser_child_process_host_delegate.h" | 19 #include "content/public/browser/browser_child_process_host_delegate.h" |
| 19 #include "content/public/browser/browser_child_process_host_iterator.h" | 20 #include "content/public/browser/browser_child_process_host_iterator.h" |
| 20 #include "content/public/common/process_type.h" | 21 #include "content/public/common/process_type.h" |
| 21 #include "ipc/ipc_sender.h" | 22 #include "ipc/ipc_sender.h" |
| 22 #include "url/gurl.h" | 23 #include "url/gurl.h" |
| 23 | 24 |
| 24 namespace fileapi { | 25 namespace fileapi { |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 194 unsigned long estimated_size, | 195 unsigned long estimated_size, |
| 195 bool* result); | 196 bool* result); |
| 196 void OnAllowFileSystem(int worker_route_id, | 197 void OnAllowFileSystem(int worker_route_id, |
| 197 const GURL& url, | 198 const GURL& url, |
| 198 bool* result); | 199 bool* result); |
| 199 void OnAllowIndexedDB(int worker_route_id, | 200 void OnAllowIndexedDB(int worker_route_id, |
| 200 const GURL& url, | 201 const GURL& url, |
| 201 const string16& name, | 202 const string16& name, |
| 202 bool* result); | 203 bool* result); |
| 203 | 204 |
| 205 void OnForceKillWorkerProcess(int worker_route_id, | |
|
michaeln
2013/09/12 00:22:11
indent is off
Mustafa Acer
2013/09/12 00:29:14
Done.
| |
| 206 base::ProcessHandle handle, | |
| 207 bool* result); | |
| 208 | |
| 204 // Relays a message to the given endpoint. Takes care of parsing the message | 209 // Relays a message to the given endpoint. Takes care of parsing the message |
| 205 // if it contains a message port and sending it a valid route id. | 210 // if it contains a message port and sending it a valid route id. |
| 206 void RelayMessage(const IPC::Message& message, | 211 void RelayMessage(const IPC::Message& message, |
| 207 WorkerMessageFilter* filter, | 212 WorkerMessageFilter* filter, |
| 208 int route_id); | 213 int route_id); |
| 209 | 214 |
| 210 void ShutdownSocketStreamDispatcherHostIfNecessary(); | 215 void ShutdownSocketStreamDispatcherHostIfNecessary(); |
| 211 | 216 |
| 212 virtual bool CanShutdown() OVERRIDE; | 217 virtual bool CanShutdown() OVERRIDE; |
| 213 | 218 |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 241 public: | 246 public: |
| 242 WorkerProcessHostIterator() | 247 WorkerProcessHostIterator() |
| 243 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( | 248 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( |
| 244 PROCESS_TYPE_WORKER) { | 249 PROCESS_TYPE_WORKER) { |
| 245 } | 250 } |
| 246 }; | 251 }; |
| 247 | 252 |
| 248 } // namespace content | 253 } // namespace content |
| 249 | 254 |
| 250 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 255 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
| OLD | NEW |