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

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

Issue 155905: Separates ipc code from common (http://crbug.com/16829) (Closed)
Patch Set: Fixes reference to 'common_message_traits' it's actually 'common_param_traits' 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
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 #if defined(OS_POSIX) 11 #if defined(OS_POSIX)
12 #include "base/global_descriptors_posix.h" 12 #include "base/global_descriptors_posix.h"
13 #endif 13 #endif
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "base/process_util.h" 16 #include "base/process_util.h"
17 #include "base/string_util.h" 17 #include "base/string_util.h"
18 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
19 #include "chrome/browser/child_process_security_policy.h" 19 #include "chrome/browser/child_process_security_policy.h"
20 #include "chrome/browser/renderer_host/render_view_host.h" 20 #include "chrome/browser/renderer_host/render_view_host.h"
21 #include "chrome/browser/worker_host/worker_service.h" 21 #include "chrome/browser/worker_host/worker_service.h"
22 #include "chrome/common/chrome_descriptors.h"
23 #include "chrome/common/chrome_switches.h" 22 #include "chrome/common/chrome_switches.h"
24 #include "chrome/common/debug_flags.h" 23 #include "chrome/common/debug_flags.h"
25 #include "chrome/common/process_watcher.h" 24 #include "chrome/common/process_watcher.h"
26 #include "chrome/common/render_messages.h" 25 #include "chrome/common/render_messages.h"
27 #include "chrome/common/worker_messages.h" 26 #include "chrome/common/worker_messages.h"
27 #include "ipc/ipc_descriptors.h"
28 #include "net/base/registry_controlled_domain.h" 28 #include "net/base/registry_controlled_domain.h"
29 29
30 #if defined(OS_WIN) 30 #if defined(OS_WIN)
31 #include "chrome/browser/sandbox_policy.h" 31 #include "chrome/browser/sandbox_policy.h"
32 #endif 32 #endif
33 33
34 // Notifies RenderViewHost that one or more worker objects crashed. 34 // Notifies RenderViewHost that one or more worker objects crashed.
35 class WorkerCrashTask : public Task { 35 class WorkerCrashTask : public Task {
36 public: 36 public:
37 WorkerCrashTask(int render_process_id, int render_view_id) 37 WorkerCrashTask(int render_process_id, int render_view_id)
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 } 231 }
232 232
233 void WorkerProcessHost::OnCancelCreateDedicatedWorker(int route_id) { 233 void WorkerProcessHost::OnCancelCreateDedicatedWorker(int route_id) {
234 WorkerService::GetInstance()->CancelCreateDedicatedWorker( 234 WorkerService::GetInstance()->CancelCreateDedicatedWorker(
235 GetProcessId(), route_id); 235 GetProcessId(), route_id);
236 } 236 }
237 237
238 void WorkerProcessHost::OnForwardToWorker(const IPC::Message& message) { 238 void WorkerProcessHost::OnForwardToWorker(const IPC::Message& message) {
239 WorkerService::GetInstance()->ForwardMessage(message, GetProcessId()); 239 WorkerService::GetInstance()->ForwardMessage(message, GetProcessId());
240 } 240 }
OLDNEW
« no previous file with comments | « chrome/browser/worker_host/worker_process_host.h ('k') | chrome/browser/worker_host/worker_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698