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 <stdint.h> |
9 #include <string.h> | 10 #include <string.h> |
10 | 11 |
| 12 #include "base/macros.h" |
11 #include "components/nacl/renderer/plugin/plugin.h" | 13 #include "components/nacl/renderer/plugin/plugin.h" |
12 #include "components/nacl/renderer/plugin/srpc_params.h" | 14 #include "components/nacl/renderer/plugin/srpc_params.h" |
13 #include "components/nacl/renderer/plugin/utility.h" | 15 #include "components/nacl/renderer/plugin/utility.h" |
14 #include "native_client/src/shared/platform/nacl_log.h" | 16 #include "native_client/src/shared/platform/nacl_log.h" |
15 | 17 |
16 namespace plugin { | 18 namespace plugin { |
17 | 19 |
18 typedef bool (*RpcFunction)(void* obj, SrpcParams* params); | 20 typedef bool (*RpcFunction)(void* obj, SrpcParams* params); |
19 | 21 |
20 // MethodInfo records the method names and type signatures of an SRPC server. | 22 // MethodInfo records the method names and type signatures of an SRPC server. |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 PLUGIN_PRINTF(("SrpcClient::Invoke (err='%s', return 0)\n", | 187 PLUGIN_PRINTF(("SrpcClient::Invoke (err='%s', return 0)\n", |
186 NaClSrpcErrorString(last_error_))); | 188 NaClSrpcErrorString(last_error_))); |
187 return false; | 189 return false; |
188 } | 190 } |
189 | 191 |
190 PLUGIN_PRINTF(("SrpcClient::Invoke (return 1)\n")); | 192 PLUGIN_PRINTF(("SrpcClient::Invoke (return 1)\n")); |
191 return true; | 193 return true; |
192 } | 194 } |
193 | 195 |
194 } // namespace plugin | 196 } // namespace plugin |
OLD | NEW |