| 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 "ppapi/native_client/src/trusted/plugin/nacl_subprocess.h" | 5 #include "ppapi/native_client/src/trusted/plugin/nacl_subprocess.h" |
| 6 | 6 |
| 7 #include <stdarg.h> | 7 #include <stdarg.h> |
| 8 | 8 |
| 9 #include "native_client/src/shared/srpc/nacl_srpc.h" | 9 #include "native_client/src/shared/srpc/nacl_srpc.h" |
| 10 #include "ppapi/native_client/src/trusted/plugin/plugin_error.h" | 10 #include "ppapi/native_client/src/trusted/plugin/plugin_error.h" |
| 11 #include "ppapi/native_client/src/trusted/plugin/srpc_params.h" | 11 #include "ppapi/native_client/src/trusted/plugin/srpc_params.h" |
| 12 | 12 |
| 13 namespace plugin { | 13 namespace plugin { |
| 14 | 14 |
| 15 NaClSubprocess::NaClSubprocess(const std::string& description, |
| 16 ServiceRuntime* service_runtime, |
| 17 SrpcClient* srpc_client) |
| 18 : description_(description), |
| 19 service_runtime_(service_runtime), |
| 20 srpc_client_(srpc_client) { |
| 21 } |
| 22 |
| 15 std::string NaClSubprocess::detailed_description() const { | 23 std::string NaClSubprocess::detailed_description() const { |
| 16 std::stringstream ss; | 24 std::stringstream ss; |
| 17 ss << description() | 25 ss << description() |
| 18 << "={ this=" << static_cast<const void*>(this) | 26 << "={ this=" << static_cast<const void*>(this) |
| 19 << ", srpc_client=" << static_cast<void*>(srpc_client_.get()) | 27 << ", srpc_client=" << static_cast<void*>(srpc_client_.get()) |
| 20 << ", service_runtime=" << static_cast<void*>(service_runtime_.get()) | 28 << ", service_runtime=" << static_cast<void*>(service_runtime_.get()) |
| 21 << " }"; | 29 << " }"; |
| 22 return ss.str(); | 30 return ss.str(); |
| 23 } | 31 } |
| 24 | 32 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 } | 135 } |
| 128 params->ins()[i]->arrays.str = input; | 136 params->ins()[i]->arrays.str = input; |
| 129 break; | 137 break; |
| 130 } | 138 } |
| 131 } | 139 } |
| 132 } | 140 } |
| 133 return srpc_client_->Invoke(method_name, params); | 141 return srpc_client_->Invoke(method_name, params); |
| 134 } | 142 } |
| 135 | 143 |
| 136 } // namespace plugin | 144 } // namespace plugin |
| OLD | NEW |