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 // 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_SRPC_CLIENT_H_ | 10 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_CLIENT_H_ |
11 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_SRPC_CLIENT_H_ | 11 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_CLIENT_H_ |
12 | 12 |
13 #include <map> | 13 #include <map> |
14 #include "native_client/src/include/nacl_macros.h" | 14 #include "native_client/src/include/nacl_macros.h" |
15 #include "native_client/src/trusted/plugin/srpc/utility.h" | 15 #include "native_client/src/trusted/plugin/utility.h" |
16 | 16 |
17 namespace plugin { | 17 namespace plugin { |
18 | 18 |
19 class ConnectedSocket; | 19 class ConnectedSocket; |
20 class MethodInfo; | 20 class MethodInfo; |
21 | 21 |
22 // SrpcClient represents an SRPC connection to a client. | 22 // SrpcClient represents an SRPC connection to a client. |
23 class SrpcClient { | 23 class SrpcClient { |
24 public: | 24 public: |
25 // Init is passed a ConnectedSocket. It performs service | 25 // Init is passed a ConnectedSocket. It performs service |
(...skipping 15 matching lines...) Expand all Loading... |
41 NACL_DISALLOW_COPY_AND_ASSIGN(SrpcClient); | 41 NACL_DISALLOW_COPY_AND_ASSIGN(SrpcClient); |
42 void GetMethods(); | 42 void GetMethods(); |
43 typedef std::map<uintptr_t, MethodInfo*> Methods; | 43 typedef std::map<uintptr_t, MethodInfo*> Methods; |
44 Methods methods_; | 44 Methods methods_; |
45 NaClSrpcChannel srpc_channel_; | 45 NaClSrpcChannel srpc_channel_; |
46 BrowserInterface* browser_interface_; | 46 BrowserInterface* browser_interface_; |
47 }; | 47 }; |
48 | 48 |
49 } // namespace plugin | 49 } // namespace plugin |
50 | 50 |
51 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_SRPC_CLIENT_H_ | 51 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_CLIENT_H_ |
OLD | NEW |