OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright 2010 The Native Client Authors. All rights reserved. | |
3 * Use of this source code is governed by a BSD-style license that can | |
4 * be found in the LICENSE file. | |
5 */ | |
6 | |
7 // Utility functions for handling PPAPI Var's. | |
8 | |
9 | |
10 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_VAR_UTILS_H_ | |
11 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_VAR_UTILS_H_ | |
12 | |
13 #include <string> | |
14 | |
15 #include "native_client/src/include/nacl_string.h" | |
16 #include "native_client/src/shared/srpc/nacl_srpc.h" | |
17 #include "native_client/src/trusted/plugin/plugin.h" | |
18 #include "ppapi/cpp/var.h" | |
19 | |
20 namespace plugin { | |
21 | |
22 nacl::string NameAsString(const pp::Var& name); | |
23 | |
24 bool PPVarToAllocateNaClSrpcArg(const pp::Var& var, | |
25 NaClSrpcArg* arg, | |
26 pp::Var* exception); | |
27 | |
28 bool PPVarToNaClSrpcArg(const pp::Var& var, | |
29 NaClSrpcArg* arg, | |
30 pp::Var* exception); | |
31 | |
32 pp::Var NaClSrpcArgToPPVar(const NaClSrpcArg* arg, | |
33 Plugin* plugin, | |
34 pp::Var* exception); | |
35 | |
36 } // namespace plugin | |
37 | |
38 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_VAR_UTILS_H_ | |
OLD | NEW |