Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
removable_storage_dev.h
Go to the documentation of this file.
1 
20 #ifndef PPAPI_CPP_REMOVABLE_STORAGE_DEV_H_
21 #define PPAPI_CPP_REMOVABLE_STORAGE_DEV_H_
22 
23 #include "ppapi/c/dev/ppb_removable_storage_dev.h"
25 #include "ppapi/cpp/dev/device_ref_dev.h"
26 #include "ppapi/cpp/file_system.h"
28 #include "ppapi/cpp/resource.h"
29 
30 
31 namespace pp {
32 
34 public:
35 
46  explicit RemovableStorage_Dev(const InstanceHandle& instance);
47 
55  bool IsRemovableStorage();
56 
64  static bool IsAvailable();
65 
75  int32_t EnumerateDevices(const CompletionCallbackWithOutput<std::vector<DeviceRef_Dev> >& callback);
76 
94  int32_t MonitorDeviceChange(PP_MonitorDeviceChangeCallback callback,
95  void* user_data);
96 
110  int32_t Open(const FileSystem& file_system,
111  const DeviceRef_Dev& device_ref,
112  const CompletionCallback& callback);
113 };
114 
115 } // namespace pp
116 
117 #endif // PPAPI_CPP_REMOVABLE_STORAGE_DEV_H_
Definition: removable_storage_dev.h:33
Definition: completion_callback.h:189
static bool IsAvailable()
int32_t Open(const FileSystem &file_system, const DeviceRef_Dev &device_ref, const CompletionCallback &callback)
Definition: completion_callback.h:26
Definition: instance_handle.h:44
int32_t EnumerateDevices(const CompletionCallbackWithOutput< std::vector< DeviceRef_Dev > > &callback)
Definition: device_ref_dev.h:14
int32_t MonitorDeviceChange(PP_MonitorDeviceChangeCallback callback, void *user_data)
Definition: file_system.h:24
A reference counted module resource.
Definition: resource.h:20
RemovableStorage_Dev(const InstanceHandle &instance)