| 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 #include "components/nacl/renderer/plugin/srpc_client.h" | 7 #include "components/nacl/renderer/plugin/srpc_client.h" |
| 8 | 8 |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 | 10 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 if (NACL_SRPC_RESULT_OK != last_error_) { | 184 if (NACL_SRPC_RESULT_OK != last_error_) { |
| 185 PLUGIN_PRINTF(("SrpcClient::Invoke (err='%s', return 0)\n", | 185 PLUGIN_PRINTF(("SrpcClient::Invoke (err='%s', return 0)\n", |
| 186 NaClSrpcErrorString(last_error_))); | 186 NaClSrpcErrorString(last_error_))); |
| 187 return false; | 187 return false; |
| 188 } | 188 } |
| 189 | 189 |
| 190 PLUGIN_PRINTF(("SrpcClient::Invoke (return 1)\n")); | 190 PLUGIN_PRINTF(("SrpcClient::Invoke (return 1)\n")); |
| 191 return true; | 191 return true; |
| 192 } | 192 } |
| 193 | 193 |
| 194 void SrpcClient::AttachService(NaClSrpcService* service, void* instance_data) { | |
| 195 srpc_channel_.server = service; | |
| 196 srpc_channel_.server_instance_data = instance_data; | |
| 197 } | |
| 198 | |
| 199 } // namespace plugin | 194 } // namespace plugin |
| OLD | NEW |