| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/renderer/nexe_load_manager.h" | 5 #include "components/nacl/renderer/nexe_load_manager.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "components/nacl/common/nacl_host_messages.h" | 10 #include "components/nacl/common/nacl_host_messages.h" |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 void NexeLoadManager::SetReadOnlyProperty(PP_Var key, PP_Var value) { | 316 void NexeLoadManager::SetReadOnlyProperty(PP_Var key, PP_Var value) { |
| 317 plugin_instance_->SetEmbedProperty(key, value); | 317 plugin_instance_->SetEmbedProperty(key, value); |
| 318 } | 318 } |
| 319 | 319 |
| 320 void NexeLoadManager::LogToConsole(const std::string& message) { | 320 void NexeLoadManager::LogToConsole(const std::string& message) { |
| 321 ppapi::PpapiGlobals::Get()->LogWithSource( | 321 ppapi::PpapiGlobals::Get()->LogWithSource( |
| 322 pp_instance_, PP_LOGLEVEL_LOG, std::string("NativeClient"), message); | 322 pp_instance_, PP_LOGLEVEL_LOG, std::string("NativeClient"), message); |
| 323 } | 323 } |
| 324 | 324 |
| 325 void NexeLoadManager::set_exit_status(int exit_status) { | 325 void NexeLoadManager::set_exit_status(int exit_status) { |
| 326 exit_status_ = exit_status; |
| 326 ppapi::ScopedPPVar exit_status_name_var( | 327 ppapi::ScopedPPVar exit_status_name_var( |
| 327 ppapi::ScopedPPVar::PassRef(), | 328 ppapi::ScopedPPVar::PassRef(), |
| 328 ppapi::StringVar::StringToPPVar("exitStatus")); | 329 ppapi::StringVar::StringToPPVar("exitStatus")); |
| 329 SetReadOnlyProperty(exit_status_name_var.get(), PP_MakeInt32(exit_status)); | 330 SetReadOnlyProperty(exit_status_name_var.get(), PP_MakeInt32(exit_status)); |
| 330 } | 331 } |
| 331 | 332 |
| 332 } // namespace nacl | 333 } // namespace nacl |
| OLD | NEW |