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

Side by Side 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, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #ifndef PPB_FILESYSTEM_PROVIDER_API_H
5 #define PPB_FILESYSTEM_PROVIDER_API_H
6
7 #include "base/memory/ref_counted.h"
8 #include "ppapi/c/dev/ppb_filesystemprovider_dev.h"
9 #include "ppapi/thunk/ppapi_thunk_export.h"
10
11 namespace ppapi {
12 class TrackedCallback;
13
14 namespace thunk {
15
16 class PPAPI_THUNK_EXPORT PPB_FilesystemProvider_API {
17 public:
18 virtual ~PPB_FilesystemProvider_API() {}
19
20 virtual int32_t Mount(
21 struct PP_Var filesystem_id,
22 struct PP_Var display_name,
23 PP_Bool writable,
24 int32_t opened_files_limit,
25 PP_ProviderError_Dev* error,
26 scoped_refptr<TrackedCallback> callback)=0;
27
28 virtual int32_t Unmount(
29 struct PP_Var filesystem_id,
30 PP_ProviderError_Dev* error,
31 scoped_refptr<TrackedCallback> callback)=0;
32
33 virtual int32_t SendSuccessResponse(
34 PP_OperationType_Dev operation_type,
35 int32_t request_id)=0;
36 virtual int32_t SendErrorResponse(
37 PP_OperationType_Dev operation_type,
38 PP_ProviderError_Dev error,
39 int32_t request_id)=0;
40
41 virtual int32_t SendMetadataSuccessResponse(
42 const struct PP_EntryMetadata_Dev* metadata,
43 int32_t request_id)=0;
44
45 virtual int32_t SendReadDirectorySuccessResponse(
46 uint32_t array_size,
47 const struct PP_EntryMetadata_Dev entries[],
48 PP_Bool has_more,
49 int32_t request_id)=0;
50
51 virtual int32_t SendReadFileSuccessResponse(
52 uint32_t data_size,
53 const void* data,
54 PP_Bool has_more,
55 int32_t request_id)=0;
56 virtual int32_t GetNextRequest( PP_FilesystemRequest* request,
57 scoped_refptr<TrackedCallback> callback)=0;
58 virtual int32_t FreeWriteRequestBuffer(const void* buffer)=0;
59
60 };
61
62 } // thunk namespace
63 } // ppapi namespace
64
65 #endif // PPB_FILESYSTEM_PROVIDER_API_H
66
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698