| 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_process_host.h" | 5 #include "components/nacl/browser/nacl_process_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 delete this; | 486 delete this; |
| 487 } | 487 } |
| 488 | 488 |
| 489 void NaClProcessHost::OnDebugExceptionHandlerLaunchedByBroker(bool success) { | 489 void NaClProcessHost::OnDebugExceptionHandlerLaunchedByBroker(bool success) { |
| 490 IPC::Message* reply = attach_debug_exception_handler_reply_msg_.release(); | 490 IPC::Message* reply = attach_debug_exception_handler_reply_msg_.release(); |
| 491 NaClProcessMsg_AttachDebugExceptionHandler::WriteReplyParams(reply, success); | 491 NaClProcessMsg_AttachDebugExceptionHandler::WriteReplyParams(reply, success); |
| 492 Send(reply); | 492 Send(reply); |
| 493 } | 493 } |
| 494 #endif | 494 #endif |
| 495 | 495 |
| 496 // Needed to handle sync messages in OnMessageRecieved. | 496 // Needed to handle sync messages in OnMessageReceived. |
| 497 bool NaClProcessHost::Send(IPC::Message* msg) { | 497 bool NaClProcessHost::Send(IPC::Message* msg) { |
| 498 return process_->Send(msg); | 498 return process_->Send(msg); |
| 499 } | 499 } |
| 500 | 500 |
| 501 bool NaClProcessHost::LaunchNaClGdb() { | 501 bool NaClProcessHost::LaunchNaClGdb() { |
| 502 #if defined(OS_WIN) | 502 #if defined(OS_WIN) |
| 503 base::FilePath nacl_gdb = | 503 base::FilePath nacl_gdb = |
| 504 CommandLine::ForCurrentProcess()->GetSwitchValuePath(switches::kNaClGdb); | 504 CommandLine::ForCurrentProcess()->GetSwitchValuePath(switches::kNaClGdb); |
| 505 CommandLine cmd_line(nacl_gdb); | 505 CommandLine cmd_line(nacl_gdb); |
| 506 #else | 506 #else |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1092 process_handle.Take(), info, | 1092 process_handle.Take(), info, |
| 1093 base::MessageLoopProxy::current(), | 1093 base::MessageLoopProxy::current(), |
| 1094 base::Bind(&NaClProcessHost::OnDebugExceptionHandlerLaunchedByBroker, | 1094 base::Bind(&NaClProcessHost::OnDebugExceptionHandlerLaunchedByBroker, |
| 1095 weak_factory_.GetWeakPtr())); | 1095 weak_factory_.GetWeakPtr())); |
| 1096 return true; | 1096 return true; |
| 1097 } | 1097 } |
| 1098 } | 1098 } |
| 1099 #endif | 1099 #endif |
| 1100 | 1100 |
| 1101 } // namespace nacl | 1101 } // namespace nacl |
| OLD | NEW |