| 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 #include <utility> | 10 #include <utility> |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 void OnWorkerContextClosed(int worker_route_id); | 166 void OnWorkerContextClosed(int worker_route_id); |
| 167 void OnAllowDatabase(int worker_route_id, | 167 void OnAllowDatabase(int worker_route_id, |
| 168 const GURL& url, | 168 const GURL& url, |
| 169 const string16& name, | 169 const string16& name, |
| 170 const string16& display_name, | 170 const string16& display_name, |
| 171 unsigned long estimated_size, | 171 unsigned long estimated_size, |
| 172 bool* result); | 172 bool* result); |
| 173 void OnAllowFileSystem(int worker_route_id, | 173 void OnAllowFileSystem(int worker_route_id, |
| 174 const GURL& url, | 174 const GURL& url, |
| 175 bool* result); | 175 bool* result); |
| 176 void OnAllowIndexedDB(int worker_route_id, |
| 177 const GURL& url, |
| 178 const string16& name, |
| 179 bool* result); |
| 176 | 180 |
| 177 // Relays a message to the given endpoint. Takes care of parsing the message | 181 // Relays a message to the given endpoint. Takes care of parsing the message |
| 178 // if it contains a message port and sending it a valid route id. | 182 // if it contains a message port and sending it a valid route id. |
| 179 void RelayMessage(const IPC::Message& message, | 183 void RelayMessage(const IPC::Message& message, |
| 180 WorkerMessageFilter* filter, | 184 WorkerMessageFilter* filter, |
| 181 int route_id); | 185 int route_id); |
| 182 | 186 |
| 183 virtual bool CanShutdown() OVERRIDE; | 187 virtual bool CanShutdown() OVERRIDE; |
| 184 | 188 |
| 185 // Updates the title shown in the task manager. | 189 // Updates the title shown in the task manager. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 206 class WorkerProcessHostIterator | 210 class WorkerProcessHostIterator |
| 207 : public content::BrowserChildProcessHostTypeIterator<WorkerProcessHost> { | 211 : public content::BrowserChildProcessHostTypeIterator<WorkerProcessHost> { |
| 208 public: | 212 public: |
| 209 WorkerProcessHostIterator() | 213 WorkerProcessHostIterator() |
| 210 : content::BrowserChildProcessHostTypeIterator<WorkerProcessHost>( | 214 : content::BrowserChildProcessHostTypeIterator<WorkerProcessHost>( |
| 211 content::PROCESS_TYPE_WORKER) { | 215 content::PROCESS_TYPE_WORKER) { |
| 212 } | 216 } |
| 213 }; | 217 }; |
| 214 | 218 |
| 215 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ | 219 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ |
| OLD | NEW |