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

Side by Side Diff: chrome/browser/worker_host/worker_process_host.cc

Issue 155331: plugins: use OnChannelError to detect when the channel goes away (Closed)
Patch Set: with a fix to a unit test Created 11 years, 5 months 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
« no previous file with comments | « chrome/browser/utility_process_host_unittest.cc ('k') | chrome/common/child_process_host.h » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "chrome/browser/worker_host/worker_process_host.h" 5 #include "chrome/browser/worker_host/worker_process_host.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug_util.h" 10 #include "base/debug_util.h"
11 #include "base/message_loop.h"
11 #include "base/path_service.h" 12 #include "base/path_service.h"
12 #include "base/process_util.h" 13 #include "base/process_util.h"
13 #include "base/string_util.h" 14 #include "base/string_util.h"
14 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/child_process_security_policy.h" 16 #include "chrome/browser/child_process_security_policy.h"
16 #include "chrome/browser/renderer_host/render_view_host.h" 17 #include "chrome/browser/renderer_host/render_view_host.h"
17 #include "chrome/browser/worker_host/worker_service.h" 18 #include "chrome/browser/worker_host/worker_service.h"
18 #include "chrome/common/chrome_switches.h" 19 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/debug_flags.h" 20 #include "chrome/common/debug_flags.h"
20 #include "chrome/common/process_watcher.h" 21 #include "chrome/common/process_watcher.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 } 219 }
219 220
220 void WorkerProcessHost::OnCancelCreateDedicatedWorker(int route_id) { 221 void WorkerProcessHost::OnCancelCreateDedicatedWorker(int route_id) {
221 WorkerService::GetInstance()->CancelCreateDedicatedWorker( 222 WorkerService::GetInstance()->CancelCreateDedicatedWorker(
222 GetProcessId(), route_id); 223 GetProcessId(), route_id);
223 } 224 }
224 225
225 void WorkerProcessHost::OnForwardToWorker(const IPC::Message& message) { 226 void WorkerProcessHost::OnForwardToWorker(const IPC::Message& message) {
226 WorkerService::GetInstance()->ForwardMessage(message, GetProcessId()); 227 WorkerService::GetInstance()->ForwardMessage(message, GetProcessId());
227 } 228 }
OLDNEW
« no previous file with comments | « chrome/browser/utility_process_host_unittest.cc ('k') | chrome/common/child_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698