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 | 7 |
8 // The browser scriptable container class. The methods on this class | 8 // The browser scriptable container class. The methods on this class |
9 // are defined in the specific API directories. | 9 // are defined in the specific API directories. |
10 | 10 |
11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_SCRIPTABLE_HANDLE_H_ | 11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SCRIPTABLE_HANDLE_H_ |
12 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_SCRIPTABLE_HANDLE_H_ | 12 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SCRIPTABLE_HANDLE_H_ |
13 | 13 |
14 #include "native_client/src/trusted/plugin/srpc/scriptable_handle.h" | 14 #include "native_client/src/trusted/plugin/scriptable_handle.h" |
15 | 15 |
16 #include <stdio.h> | 16 #include <stdio.h> |
17 #include <string.h> | 17 #include <string.h> |
18 | 18 |
19 #include <set> | 19 #include <set> |
20 | 20 |
21 #include "native_client/src/include/checked_cast.h" | 21 #include "native_client/src/include/checked_cast.h" |
22 #include "native_client/src/include/nacl_macros.h" | 22 #include "native_client/src/include/nacl_macros.h" |
23 #include "native_client/src/include/portability.h" | 23 #include "native_client/src/include/portability.h" |
24 #include "native_client/src/trusted/plugin/srpc/utility.h" | 24 #include "native_client/src/trusted/plugin/utility.h" |
25 | 25 |
26 namespace plugin { | 26 namespace plugin { |
27 | 27 |
28 // Forward declarations for externals. | 28 // Forward declarations for externals. |
29 class PortableHandle; | 29 class PortableHandle; |
30 | 30 |
31 // ScriptableHandle encapsulates objects that are scriptable from the browser. | 31 // ScriptableHandle encapsulates objects that are scriptable from the browser. |
32 class ScriptableHandle { | 32 class ScriptableHandle { |
33 public: | 33 public: |
34 // Check that a pointer is to a validly created ScriptableHandle. | 34 // Check that a pointer is to a validly created ScriptableHandle. |
(...skipping 13 matching lines...) Expand all Loading... |
48 explicit ScriptableHandle(PortableHandle* handle); | 48 explicit ScriptableHandle(PortableHandle* handle); |
49 virtual ~ScriptableHandle(); | 49 virtual ~ScriptableHandle(); |
50 | 50 |
51 private: | 51 private: |
52 NACL_DISALLOW_COPY_AND_ASSIGN(ScriptableHandle); | 52 NACL_DISALLOW_COPY_AND_ASSIGN(ScriptableHandle); |
53 PortableHandle* handle_; | 53 PortableHandle* handle_; |
54 }; | 54 }; |
55 | 55 |
56 } // namespace plugin | 56 } // namespace plugin |
57 | 57 |
58 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_SCRIPTABLE_HANDLE_H_ | 58 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SCRIPTABLE_HANDLE_H_ |
OLD | NEW |