| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #define NACL_LOG_MODULE_NAME "Plugin_ServiceRuntime" | 7 #define NACL_LOG_MODULE_NAME "Plugin_ServiceRuntime" |
| 8 | 8 |
| 9 #include "ppapi/native_client/src/trusted/plugin/service_runtime.h" | 9 #include "ppapi/native_client/src/trusted/plugin/service_runtime.h" |
| 10 | 10 |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 NaClCondVarDtor(&cond_); | 581 NaClCondVarDtor(&cond_); |
| 582 NaClMutexDtor(&mu_); | 582 NaClMutexDtor(&mu_); |
| 583 } | 583 } |
| 584 | 584 |
| 585 void ServiceRuntime::set_exit_status(int exit_status) { | 585 void ServiceRuntime::set_exit_status(int exit_status) { |
| 586 nacl::MutexLocker take(&mu_); | 586 nacl::MutexLocker take(&mu_); |
| 587 if (main_service_runtime_) | 587 if (main_service_runtime_) |
| 588 plugin_->set_exit_status(exit_status & 0xff); | 588 plugin_->set_exit_status(exit_status & 0xff); |
| 589 } | 589 } |
| 590 | 590 |
| 591 nacl::string ServiceRuntime::GetCrashLogOutput() { | |
| 592 if (NULL != subprocess_.get()) { | |
| 593 return subprocess_->GetCrashLogOutput(); | |
| 594 } else { | |
| 595 return std::string(); | |
| 596 } | |
| 597 } | |
| 598 | |
| 599 } // namespace plugin | 591 } // namespace plugin |
| OLD | NEW |