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

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: Moved several modules to chromeos folder. Created 5 years, 5 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
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_dev.h ('k') | ppapi/thunk/ppb_filesystem_provider_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_dev.h ('k') | ppapi/thunk/ppb_filesystem_provider_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698