Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: content/browser/worker_host/worker_process_host.h

Issue 23496052: Kill worker process by way of a sync IPC message before it cleans up. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add process_ checks Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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();
210 211
211 // Relays a message to the given endpoint. Takes care of parsing the message 212 // Relays a message to the given endpoint. Takes care of parsing the message
212 // if it contains a message port and sending it a valid route id. 213 // if it contains a message port and sending it a valid route id.
213 void RelayMessage(const IPC::Message& message, 214 void RelayMessage(const IPC::Message& message,
214 WorkerMessageFilter* filter, 215 WorkerMessageFilter* filter,
215 int route_id); 216 int route_id);
216 217
217 void ShutdownSocketStreamDispatcherHostIfNecessary(); 218 void ShutdownSocketStreamDispatcherHostIfNecessary();
218 219
219 virtual bool CanShutdown() OVERRIDE; 220 virtual bool CanShutdown() OVERRIDE;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 public: 255 public:
255 WorkerProcessHostIterator() 256 WorkerProcessHostIterator()
256 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( 257 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>(
257 PROCESS_TYPE_WORKER) { 258 PROCESS_TYPE_WORKER) {
258 } 259 }
259 }; 260 };
260 261
261 } // namespace content 262 } // namespace content
262 263
263 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 264 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698