OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/broker/nacl_broker_listener.h" | 5 #include "components/nacl/broker/nacl_broker_listener.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/process/launch.h" | 12 #include "base/process/launch.h" |
13 #include "base/process/process.h" | 13 #include "base/process/process.h" |
14 #include "base/process/process_handle.h" | 14 #include "base/process/process_handle.h" |
15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "components/nacl/common/nacl_cmd_line.h" | 16 #include "components/nacl/common/nacl_cmd_line.h" |
17 #include "components/nacl/common/nacl_debug_exception_handler_win.h" | 17 #include "components/nacl/common/nacl_debug_exception_handler_win.h" |
18 #include "components/nacl/common/nacl_messages.h" | 18 #include "components/nacl/common/nacl_messages.h" |
19 #include "components/nacl/common/nacl_switches.h" | 19 #include "components/nacl/common/nacl_switches.h" |
20 #include "content/public/common/content_switches.h" | 20 #include "content/public/common/content_switches.h" |
21 #include "content/public/common/sandbox_init.h" | 21 #include "content/public/common/sandbox_init.h" |
22 #include "ipc/attachment_broker_unprivileged.h" | 22 #include "ipc/attachment_broker_unprivileged.h" |
23 #include "ipc/ipc_channel.h" | 23 #include "ipc/ipc_channel.h" |
24 #include "ipc/ipc_switches.h" | 24 #include "ipc/ipc_switches.h" |
25 #include "sandbox/win/src/sandbox_policy.h" | 25 #include "sandbox/win/src/sandbox_policy.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 const std::string& startup_info) { | 139 const std::string& startup_info) { |
140 NaClStartDebugExceptionHandlerThread( | 140 NaClStartDebugExceptionHandlerThread( |
141 base::Process(process_handle), startup_info, | 141 base::Process(process_handle), startup_info, |
142 base::ThreadTaskRunnerHandle::Get(), | 142 base::ThreadTaskRunnerHandle::Get(), |
143 base::Bind(SendReply, channel_.get(), pid)); | 143 base::Bind(SendReply, channel_.get(), pid)); |
144 } | 144 } |
145 | 145 |
146 void NaClBrokerListener::OnStopBroker() { | 146 void NaClBrokerListener::OnStopBroker() { |
147 base::MessageLoop::current()->QuitWhenIdle(); | 147 base::MessageLoop::current()->QuitWhenIdle(); |
148 } | 148 } |
OLD | NEW |