5 #ifndef PPAPI_CPP_PRIVATE_PASS_FILE_HANDLE_H_
6 #define PPAPI_CPP_PRIVATE_PASS_FILE_HANDLE_H_
10 #include "ppapi/c/private/pp_file_handle.h"
11 #include "ppapi/cpp/output_traits.h"
34 struct PassFileHandleRef {
36 explicit PassFileHandleRef(PP_FileHandle h)
43 : handle_(ref.handle) {
46 operator PassFileHandleRef() {
47 return PassFileHandleRef(
Release());
55 PP_FileHandle handle_;
74 memset(t, 0,
sizeof(*t));
81 #endif // PPAPI_CPP_PRIVATE_PASS_FILE_HANDLE_H_
static APIArgType StorageToAPIArg(StorageType &t)
static void Initialize(StorageType *t)
PP_FileHandle StorageType
PassFileHandle(PassFileHandleRef ref)
static PassFileHandle StorageToPluginArg(StorageType &t)
PP_FileHandle * APIArgType