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/nacl/nacl_broker_listener.h" | 5 #include "chrome/nacl/nacl_broker_listener.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/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
12 #include "chrome/common/nacl_cmd_line.h" | 12 #include "chrome/common/nacl_cmd_line.h" |
13 #include "chrome/common/nacl_messages.h" | 13 #include "chrome/common/nacl_messages.h" |
14 #include "content/common/content_switches.h" | |
15 #include "content/common/sandbox_policy.h" | 14 #include "content/common/sandbox_policy.h" |
| 15 #include "content/public/common/content_switches.h" |
16 #include "ipc/ipc_switches.h" | 16 #include "ipc/ipc_switches.h" |
17 | 17 |
18 NaClBrokerListener::NaClBrokerListener() | 18 NaClBrokerListener::NaClBrokerListener() |
19 : browser_handle_(base::kNullProcessHandle) { | 19 : browser_handle_(base::kNullProcessHandle) { |
20 } | 20 } |
21 | 21 |
22 NaClBrokerListener::~NaClBrokerListener() { | 22 NaClBrokerListener::~NaClBrokerListener() { |
23 base::CloseProcessHandle(browser_handle_); | 23 base::CloseProcessHandle(browser_handle_); |
24 } | 24 } |
25 | 25 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 PROCESS_DUP_HANDLE | PROCESS_QUERY_INFORMATION , FALSE, 0); | 81 PROCESS_DUP_HANDLE | PROCESS_QUERY_INFORMATION , FALSE, 0); |
82 } | 82 } |
83 } | 83 } |
84 channel_->Send(new NaClProcessMsg_LoaderLaunched(loader_channel_id, | 84 channel_->Send(new NaClProcessMsg_LoaderLaunched(loader_channel_id, |
85 loader_handle_in_browser)); | 85 loader_handle_in_browser)); |
86 } | 86 } |
87 | 87 |
88 void NaClBrokerListener::OnStopBroker() { | 88 void NaClBrokerListener::OnStopBroker() { |
89 MessageLoop::current()->Quit(); | 89 MessageLoop::current()->Quit(); |
90 } | 90 } |
OLD | NEW |