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 // Parameter types for SRPC Invocation. | 5 // Parameter types for SRPC Invocation. |
6 | 6 |
7 #ifndef COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_PARAMS_H | 7 #ifndef COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_PARAMS_H |
8 #define COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_PARAMS_H | 8 #define COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_PARAMS_H |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "native_client/src/include/nacl_macros.h" | 11 #include "native_client/src/include/nacl_macros.h" |
11 #include "native_client/src/include/portability_string.h" | 12 #include "native_client/src/include/portability_string.h" |
12 #include "native_client/src/shared/srpc/nacl_srpc.h" | 13 #include "native_client/src/shared/srpc/nacl_srpc.h" |
13 | 14 |
14 namespace plugin { | 15 namespace plugin { |
15 | 16 |
16 // A utility class that builds and deletes parameter vectors used in rpcs. | 17 // A utility class that builds and deletes parameter vectors used in rpcs. |
17 class SrpcParams { | 18 class SrpcParams { |
18 public: | 19 public: |
19 SrpcParams() { | 20 SrpcParams() { |
(...skipping 15 matching lines...) Expand all Loading... |
35 void FreeAll(); | 36 void FreeAll(); |
36 // The ins_ and outs_ arrays contain one more element, to hold a NULL pointer | 37 // The ins_ and outs_ arrays contain one more element, to hold a NULL pointer |
37 // to indicate the end of the list. | 38 // to indicate the end of the list. |
38 NaClSrpcArg* ins_[NACL_SRPC_MAX_ARGS + 1]; | 39 NaClSrpcArg* ins_[NACL_SRPC_MAX_ARGS + 1]; |
39 NaClSrpcArg* outs_[NACL_SRPC_MAX_ARGS + 1]; | 40 NaClSrpcArg* outs_[NACL_SRPC_MAX_ARGS + 1]; |
40 }; | 41 }; |
41 | 42 |
42 } // namespace plugin | 43 } // namespace plugin |
43 | 44 |
44 #endif // COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_PARAMS_H | 45 #endif // COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_PARAMS_H |
OLD | NEW |