OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2011 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 | 7 |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 if (NACL_SRPC_RESULT_OK != err) { | 158 if (NACL_SRPC_RESULT_OK != err) { |
159 PLUGIN_PRINTF(("SrpcClient::Invoke (err='%s', return 0)\n", | 159 PLUGIN_PRINTF(("SrpcClient::Invoke (err='%s', return 0)\n", |
160 NaClSrpcErrorString(err))); | 160 NaClSrpcErrorString(err))); |
161 return false; | 161 return false; |
162 } | 162 } |
163 | 163 |
164 PLUGIN_PRINTF(("SrpcClient::Invoke (return 1)\n")); | 164 PLUGIN_PRINTF(("SrpcClient::Invoke (return 1)\n")); |
165 return true; | 165 return true; |
166 } | 166 } |
167 | 167 |
| 168 void SrpcClient::AttachService(NaClSrpcService* service, void* instance_data) { |
| 169 srpc_channel_.server = service; |
| 170 srpc_channel_.server_instance_data = instance_data; |
| 171 } |
| 172 |
168 } // namespace plugin | 173 } // namespace plugin |
OLD | NEW |