OLD | NEW |
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 #include "components/nacl/browser/nacl_broker_host_win.h" | 5 #include "components/nacl/browser/nacl_broker_host_win.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "components/nacl/browser/nacl_broker_service_win.h" | 10 #include "components/nacl/browser/nacl_broker_service_win.h" |
11 #include "components/nacl/browser/nacl_browser.h" | 11 #include "components/nacl/browser/nacl_browser.h" |
12 #include "components/nacl/common/nacl_cmd_line.h" | 12 #include "components/nacl/common/nacl_cmd_line.h" |
13 #include "components/nacl/common/nacl_messages.h" | 13 #include "components/nacl/common/nacl_messages.h" |
14 #include "components/nacl/common/nacl_process_type.h" | 14 #include "components/nacl/common/nacl_process_type.h" |
15 #include "components/nacl/common/nacl_switches.h" | 15 #include "components/nacl/common/nacl_switches.h" |
16 #include "content/public/browser/browser_child_process_host.h" | 16 #include "content/public/browser/browser_child_process_host.h" |
17 #include "content/public/browser/child_process_data.h" | 17 #include "content/public/browser/child_process_data.h" |
18 #include "content/public/common/child_process_host.h" | 18 #include "content/public/common/child_process_host.h" |
19 #include "content/public/common/content_switches.h" | 19 #include "content/public/common/content_switches.h" |
20 #include "content/public/common/mojo_channel_switches.h" | 20 #include "content/public/common/mojo_channel_switches.h" |
21 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 21 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
22 #include "ipc/ipc_switches.h" | |
23 #include "mojo/edk/embedder/embedder.h" | 22 #include "mojo/edk/embedder/embedder.h" |
24 | 23 |
25 namespace { | 24 namespace { |
26 // NOTE: changes to this class need to be reviewed by the security team. | 25 // NOTE: changes to this class need to be reviewed by the security team. |
27 class NaClBrokerSandboxedProcessLauncherDelegate | 26 class NaClBrokerSandboxedProcessLauncherDelegate |
28 : public content::SandboxedProcessLauncherDelegate { | 27 : public content::SandboxedProcessLauncherDelegate { |
29 public: | 28 public: |
30 NaClBrokerSandboxedProcessLauncherDelegate() {} | 29 NaClBrokerSandboxedProcessLauncherDelegate() {} |
31 ~NaClBrokerSandboxedProcessLauncherDelegate() override {} | 30 ~NaClBrokerSandboxedProcessLauncherDelegate() override {} |
32 | 31 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 NaClBrokerService::GetInstance()->OnDebugExceptionHandlerLaunched(pid, | 120 NaClBrokerService::GetInstance()->OnDebugExceptionHandlerLaunched(pid, |
122 success); | 121 success); |
123 } | 122 } |
124 | 123 |
125 void NaClBrokerHost::StopBroker() { | 124 void NaClBrokerHost::StopBroker() { |
126 is_terminating_ = true; | 125 is_terminating_ = true; |
127 process_->Send(new NaClProcessMsg_StopBroker()); | 126 process_->Send(new NaClProcessMsg_StopBroker()); |
128 } | 127 } |
129 | 128 |
130 } // namespace nacl | 129 } // namespace nacl |
OLD | NEW |