Index: ppapi/thunk/ppb_filesystem_provider_api.h |
diff --git a/ppapi/thunk/ppb_filesystem_provider_api.h b/ppapi/thunk/ppb_filesystem_provider_api.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fc9706d6383e14e7582a21881c49c1ae7c853cab |
--- /dev/null |
+++ b/ppapi/thunk/ppb_filesystem_provider_api.h |
@@ -0,0 +1,66 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+#ifndef PPB_FILESYSTEM_PROVIDER_API_H |
+#define PPB_FILESYSTEM_PROVIDER_API_H |
+ |
+#include "base/memory/ref_counted.h" |
+#include "ppapi/c/dev/ppb_filesystemprovider_dev.h" |
+#include "ppapi/thunk/ppapi_thunk_export.h" |
+ |
+namespace ppapi { |
+class TrackedCallback; |
+ |
+namespace thunk { |
+ |
+class PPAPI_THUNK_EXPORT PPB_FilesystemProvider_API { |
+ public: |
+ virtual ~PPB_FilesystemProvider_API() {} |
+ |
+ virtual int32_t Mount( |
+ struct PP_Var filesystem_id, |
+ struct PP_Var display_name, |
+ PP_Bool writable, |
+ int32_t opened_files_limit, |
+ scoped_refptr<TrackedCallback> callback)=0; |
+ |
+ virtual int32_t Unmount( |
+ struct PP_Var filesystem_id, |
+ scoped_refptr<TrackedCallback> callback)=0; |
+ |
+ virtual int32_t Notify( |
+ struct PP_Var notify_options )=0; |
+ |
+ virtual int32_t SendSuccessResponse( |
+ PP_OperationType_Dev operation_type, |
+ int32_t request_id)=0; |
+ virtual int32_t SendErrorResponse( |
+ PP_OperationType_Dev operation_type, |
+ int32_t error, |
+ int32_t request_id)=0; |
+ |
+ virtual int32_t SendMetadataSuccessResponse( |
+ struct PP_Var metadata, |
+ int32_t request_id)=0; |
+ |
+ virtual int32_t SendReadDirectorySuccessResponse( |
+ struct PP_Var entries, |
+ PP_Bool has_more, |
+ int32_t request_id)=0; |
+ |
+ virtual int32_t SendReadFileSuccessResponse( |
+ uint32_t data_size, |
+ const void* data, |
+ PP_Bool has_more, |
+ int32_t request_id)=0; |
+ virtual int32_t GetNextRequest( PP_FilesystemRequest* request, |
+ scoped_refptr<TrackedCallback> callback)=0; |
+ virtual int32_t ReleaseRequestBuffer(int32_t request_id)=0; |
+ |
+}; |
+ |
+} // thunk namespace |
+} // ppapi namespace |
+ |
+#endif // PPB_FILESYSTEM_PROVIDER_API_H |
+ |