| 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 | 7 |
| 8 #include "components/nacl/renderer/plugin/srpc_params.h" | 8 #include "components/nacl/renderer/plugin/srpc_params.h" |
| 9 | 9 |
| 10 #include <stddef.h> |
| 11 #include <stdint.h> |
| 10 #include <stdlib.h> | 12 #include <stdlib.h> |
| 13 #include <string.h> |
| 11 | 14 |
| 12 #include "native_client/src/shared/srpc/nacl_srpc.h" | 15 #include "native_client/src/shared/srpc/nacl_srpc.h" |
| 13 | 16 |
| 14 | 17 |
| 15 namespace plugin { | 18 namespace plugin { |
| 16 | 19 |
| 17 namespace { | 20 namespace { |
| 18 | 21 |
| 19 bool FillVec(NaClSrpcArg* vec[], const char* types) { | 22 bool FillVec(NaClSrpcArg* vec[], const char* types) { |
| 20 const size_t kLength = strlen(types); | 23 const size_t kLength = strlen(types); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 } | 113 } |
| 111 | 114 |
| 112 void SrpcParams::FreeAll() { | 115 void SrpcParams::FreeAll() { |
| 113 FreeArguments(ins_); | 116 FreeArguments(ins_); |
| 114 FreeArguments(outs_); | 117 FreeArguments(outs_); |
| 115 memset(ins_, 0, sizeof(ins_)); | 118 memset(ins_, 0, sizeof(ins_)); |
| 116 memset(outs_, 0, sizeof(outs_)); | 119 memset(outs_, 0, sizeof(outs_)); |
| 117 } | 120 } |
| 118 | 121 |
| 119 } // namespace plugin | 122 } // namespace plugin |
| OLD | NEW |