OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/nacl_host/nacl_broker_host_win.h" | 5 #include "chrome/browser/nacl_host/nacl_broker_host_win.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "ipc/ipc_switches.h" | 9 #include "ipc/ipc_switches.h" |
10 #include "chrome/browser/browser_process.h" | |
11 #include "chrome/browser/nacl_host/nacl_broker_service_win.h" | 10 #include "chrome/browser/nacl_host/nacl_broker_service_win.h" |
12 #include "chrome/browser/nacl_host/nacl_process_host.h" | 11 #include "chrome/browser/nacl_host/nacl_process_host.h" |
13 #include "chrome/common/chrome_constants.h" | 12 #include "chrome/common/chrome_constants.h" |
14 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
15 #include "chrome/common/nacl_cmd_line.h" | 14 #include "chrome/common/nacl_cmd_line.h" |
16 #include "chrome/common/nacl_messages.h" | 15 #include "chrome/common/nacl_messages.h" |
17 | 16 |
18 NaClBrokerHost::NaClBrokerHost( | 17 NaClBrokerHost::NaClBrokerHost( |
19 ResourceDispatcherHost* resource_dispatcher_host) | 18 ResourceDispatcherHost* resource_dispatcher_host) |
20 : BrowserChildProcessHost(NACL_BROKER_PROCESS, resource_dispatcher_host), | 19 : BrowserChildProcessHost(NACL_BROKER_PROCESS, resource_dispatcher_host), |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 65 |
67 void NaClBrokerHost::OnLoaderLaunched(const std::wstring& loader_channel_id, | 66 void NaClBrokerHost::OnLoaderLaunched(const std::wstring& loader_channel_id, |
68 base::ProcessHandle handle) { | 67 base::ProcessHandle handle) { |
69 NaClBrokerService::GetInstance()->OnLoaderLaunched(loader_channel_id, handle); | 68 NaClBrokerService::GetInstance()->OnLoaderLaunched(loader_channel_id, handle); |
70 } | 69 } |
71 | 70 |
72 void NaClBrokerHost::StopBroker() { | 71 void NaClBrokerHost::StopBroker() { |
73 stopping_ = true; | 72 stopping_ = true; |
74 Send(new NaClProcessMsg_StopBroker()); | 73 Send(new NaClProcessMsg_StopBroker()); |
75 } | 74 } |
OLD | NEW |