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 NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_CLIENT_H_ | 10 #ifndef COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_CLIENT_H_ |
11 #define NATIVE_CLIENT_SRC_TRUSTED_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 "components/nacl/renderer/plugin/utility.h" |
16 #include "native_client/src/include/nacl_macros.h" | 17 #include "native_client/src/include/nacl_macros.h" |
17 #include "native_client/src/shared/srpc/nacl_srpc.h" | 18 #include "native_client/src/shared/srpc/nacl_srpc.h" |
18 #include "ppapi/native_client/src/trusted/plugin/utility.h" | |
19 | 19 |
20 namespace nacl { | 20 namespace nacl { |
21 class DescWrapper; | 21 class DescWrapper; |
22 } // namespace nacl | 22 } // namespace nacl |
23 | 23 |
24 namespace plugin { | 24 namespace plugin { |
25 | 25 |
26 class ErrorInfo; | 26 class ErrorInfo; |
27 class MethodInfo; | 27 class MethodInfo; |
28 class Plugin; | 28 class Plugin; |
(...skipping 29 matching lines...) Expand all Loading... |
58 void GetMethods(); | 58 void GetMethods(); |
59 typedef std::map<std::string, MethodInfo*> Methods; | 59 typedef std::map<std::string, MethodInfo*> Methods; |
60 Methods methods_; | 60 Methods methods_; |
61 NaClSrpcChannel srpc_channel_; | 61 NaClSrpcChannel srpc_channel_; |
62 bool srpc_channel_initialised_; | 62 bool srpc_channel_initialised_; |
63 NaClSrpcError last_error_; | 63 NaClSrpcError last_error_; |
64 }; | 64 }; |
65 | 65 |
66 } // namespace plugin | 66 } // namespace plugin |
67 | 67 |
68 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_CLIENT_H_ | 68 #endif // COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_CLIENT_H_ |
OLD | NEW |