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 // A representation of an SRPC connection. These can be either to the | 7 // A representation of an SRPC connection. These can be either to the |
8 // service runtime or to untrusted NaCl threads. | 8 // service runtime or to untrusted NaCl threads. |
9 | 9 |
10 #ifndef COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_CLIENT_H_ | 10 #ifndef COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_CLIENT_H_ |
11 #define COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_CLIENT_H_ | 11 #define COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_CLIENT_H_ |
12 | 12 |
13 #include <map> | 13 #include <map> |
14 #include <string> | 14 #include <string> |
15 | 15 |
| 16 #include "base/macros.h" |
16 #include "components/nacl/renderer/plugin/utility.h" | 17 #include "components/nacl/renderer/plugin/utility.h" |
17 #include "native_client/src/include/nacl_macros.h" | 18 #include "native_client/src/include/nacl_macros.h" |
18 #include "native_client/src/shared/srpc/nacl_srpc.h" | 19 #include "native_client/src/shared/srpc/nacl_srpc.h" |
19 | 20 |
20 namespace nacl { | 21 namespace nacl { |
21 class DescWrapper; | 22 class DescWrapper; |
22 } // namespace nacl | 23 } // namespace nacl |
23 | 24 |
24 namespace plugin { | 25 namespace plugin { |
25 | 26 |
(...skipping 28 matching lines...) Expand all Loading... |
54 typedef std::map<std::string, MethodInfo*> Methods; | 55 typedef std::map<std::string, MethodInfo*> Methods; |
55 Methods methods_; | 56 Methods methods_; |
56 NaClSrpcChannel srpc_channel_; | 57 NaClSrpcChannel srpc_channel_; |
57 bool srpc_channel_initialised_; | 58 bool srpc_channel_initialised_; |
58 NaClSrpcError last_error_; | 59 NaClSrpcError last_error_; |
59 }; | 60 }; |
60 | 61 |
61 } // namespace plugin | 62 } // namespace plugin |
62 | 63 |
63 #endif // COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_CLIENT_H_ | 64 #endif // COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_CLIENT_H_ |
OLD | NEW |