| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |