Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1012)

Unified Diff: ppapi/thunk/ppb_filesystem_provider_api.h

Issue 1093383002: [WIP] Provided file system from NACL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Various cleanups Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..d481af0dafbeb01a3cf0ae1b0b7c0a3bda02fe88
--- /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,
+ PP_ProviderError_Dev* error,
+ scoped_refptr<TrackedCallback> callback)=0;
+
+ virtual int32_t Unmount(
+ struct PP_Var filesystem_id,
+ PP_ProviderError_Dev* error,
+ scoped_refptr<TrackedCallback> callback)=0;
+
+ virtual int32_t SendSuccessResponse(
+ PP_OperationType_Dev operation_type,
+ int32_t request_id)=0;
+ virtual int32_t SendErrorResponse(
+ PP_OperationType_Dev operation_type,
+ PP_ProviderError_Dev error,
+ int32_t request_id)=0;
+
+ virtual int32_t SendMetadataSuccessResponse(
+ const struct PP_EntryMetadata_Dev* metadata,
+ int32_t request_id)=0;
+
+ virtual int32_t SendReadDirectorySuccessResponse(
+ uint32_t array_size,
+ const struct PP_EntryMetadata_Dev 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 FreeWriteRequestBuffer(const void* buffer)=0;
+
+};
+
+} // thunk namespace
+} // ppapi namespace
+
+#endif // PPB_FILESYSTEM_PROVIDER_API_H
+

Powered by Google App Engine
This is Rietveld 408576698