Chromium Code Reviews| 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 "chrome/browser/nacl_host/nacl_process_host.h" | 5 #include "chrome/browser/nacl_host/nacl_process_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 272 } | 272 } |
| 273 | 273 |
| 274 if (reply_msg_) { | 274 if (reply_msg_) { |
| 275 // The process failed to launch for some reason. | 275 // The process failed to launch for some reason. |
| 276 // Don't keep the renderer hanging. | 276 // Don't keep the renderer hanging. |
| 277 reply_msg_->set_reply_error(); | 277 reply_msg_->set_reply_error(); |
| 278 chrome_render_message_filter_->Send(reply_msg_); | 278 chrome_render_message_filter_->Send(reply_msg_); |
| 279 } | 279 } |
| 280 #if defined(OS_WIN) | 280 #if defined(OS_WIN) |
| 281 if (RunningOnWOW64()) { | 281 if (RunningOnWOW64()) { |
| 282 NaClBrokerService::GetInstance()->OnLoaderDied(); | 282 // If nacl-gdb switch is not empty, NaCl loader have been launched |
|
Mark Seaborn
2012/03/13 01:05:20
'have' -> 'has'
Aha, --nacl-gdb already got broke
halyavin
2012/03/13 12:48:27
Done.
| |
| 283 // without broker and so we shouldn't inform broker about its termination. | |
| 284 if (CommandLine::ForCurrentProcess()->GetSwitchValuePath( | |
| 285 switches::kNaClGdb).empty()) { | |
|
Mark Seaborn
2012/03/13 01:05:20
This line needs indenting
halyavin
2012/03/13 12:48:27
Done.
| |
| 286 NaClBrokerService::GetInstance()->OnLoaderDied(); | |
| 287 } | |
| 283 } else { | 288 } else { |
| 284 debug_context_->SetChildProcessHost(NULL); | 289 debug_context_->SetChildProcessHost(NULL); |
| 285 } | 290 } |
| 286 #endif | 291 #endif |
| 287 } | 292 } |
| 288 | 293 |
| 289 // Attempt to ensure the IRT will be available when we need it, but don't wait. | 294 // Attempt to ensure the IRT will be available when we need it, but don't wait. |
| 290 bool NaClBrowser::EnsureIrtAvailable() { | 295 bool NaClBrowser::EnsureIrtAvailable() { |
| 291 if (IrtAvailable()) | 296 if (IrtAvailable()) |
| 292 return true; | 297 return true; |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 796 process_->Send(new NaClProcessMsg_Start(handles_for_sel_ldr)); | 801 process_->Send(new NaClProcessMsg_Start(handles_for_sel_ldr)); |
| 797 #endif | 802 #endif |
| 798 | 803 |
| 799 internal_->sockets_for_sel_ldr.clear(); | 804 internal_->sockets_for_sel_ldr.clear(); |
| 800 } | 805 } |
| 801 | 806 |
| 802 bool NaClProcessHost::OnMessageReceived(const IPC::Message& msg) { | 807 bool NaClProcessHost::OnMessageReceived(const IPC::Message& msg) { |
| 803 NOTREACHED() << "Invalid message with type = " << msg.type(); | 808 NOTREACHED() << "Invalid message with type = " << msg.type(); |
| 804 return false; | 809 return false; |
| 805 } | 810 } |
| OLD | NEW |