OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008 The Native Client Authors. All rights reserved. | 2 * Copyright 2008 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 // Lookup table types for method dispatching. | 7 // Lookup table types for method dispatching. |
8 | 8 |
9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_METHOD_MAP_H | 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_METHOD_MAP_H |
10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_METHOD_MAP_H | 10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_METHOD_MAP_H |
11 | 11 |
12 #include "native_client/src/include/nacl_macros.h" | 12 #include "native_client/src/include/nacl_macros.h" |
13 #include "native_client/src/include/portability_string.h" | 13 #include "native_client/src/include/portability_string.h" |
14 #include "native_client/src/shared/srpc/nacl_srpc.h" | 14 #include "native_client/src/shared/srpc/nacl_srpc.h" |
15 | 15 |
16 #include <limits.h> | 16 #include <limits.h> |
17 #include <map> | 17 #include <map> |
18 | 18 |
19 namespace plugin { | 19 namespace plugin { |
20 | 20 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 void AddMethod(uintptr_t method_id, MethodInfo* info); | 111 void AddMethod(uintptr_t method_id, MethodInfo* info); |
112 | 112 |
113 private: | 113 private: |
114 NACL_DISALLOW_COPY_AND_ASSIGN(MethodMap); | 114 NACL_DISALLOW_COPY_AND_ASSIGN(MethodMap); |
115 typedef std::map<uintptr_t, MethodInfo*> MethodMapStorage; | 115 typedef std::map<uintptr_t, MethodInfo*> MethodMapStorage; |
116 MethodMapStorage method_map_; | 116 MethodMapStorage method_map_; |
117 }; | 117 }; |
118 | 118 |
119 } // namespace plugin | 119 } // namespace plugin |
120 | 120 |
121 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_METHOD_MAP_H | 121 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_METHOD_MAP_H |
OLD | NEW |