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

Side by Side Diff: ppapi/thunk/ppb_file_ref_api.h

Issue 113363004: PPAPI: Add new PPB_FileRef.MakeDirectory to support exclusive operation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_THUNK_PPB_FILE_REF_API_H_ 5 #ifndef PPAPI_THUNK_PPB_FILE_REF_API_H_
6 #define PPAPI_THUNK_PPB_FILE_REF_API_H_ 6 #define PPAPI_THUNK_PPB_FILE_REF_API_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/linked_ptr.h" 10 #include "base/memory/linked_ptr.h"
(...skipping 10 matching lines...) Expand all
21 namespace thunk { 21 namespace thunk {
22 22
23 class PPAPI_THUNK_EXPORT PPB_FileRef_API { 23 class PPAPI_THUNK_EXPORT PPB_FileRef_API {
24 public: 24 public:
25 virtual ~PPB_FileRef_API() {} 25 virtual ~PPB_FileRef_API() {}
26 26
27 virtual PP_FileSystemType GetFileSystemType() const = 0; 27 virtual PP_FileSystemType GetFileSystemType() const = 0;
28 virtual PP_Var GetName() const = 0; 28 virtual PP_Var GetName() const = 0;
29 virtual PP_Var GetPath() const = 0; 29 virtual PP_Var GetPath() const = 0;
30 virtual PP_Resource GetParent() = 0; 30 virtual PP_Resource GetParent() = 0;
31 virtual int32_t MakeDirectory(PP_Bool make_ancestors, 31 virtual int32_t MakeDirectory(PP_Bool exclusive,
32 PP_Bool make_ancestors,
32 scoped_refptr<TrackedCallback> callback) = 0; 33 scoped_refptr<TrackedCallback> callback) = 0;
33 virtual int32_t Touch(PP_Time last_access_time, 34 virtual int32_t Touch(PP_Time last_access_time,
34 PP_Time last_modified_time, 35 PP_Time last_modified_time,
35 scoped_refptr<TrackedCallback> callback) = 0; 36 scoped_refptr<TrackedCallback> callback) = 0;
36 virtual int32_t Delete(scoped_refptr<TrackedCallback> callback) = 0; 37 virtual int32_t Delete(scoped_refptr<TrackedCallback> callback) = 0;
37 virtual int32_t Rename(PP_Resource new_file_ref, 38 virtual int32_t Rename(PP_Resource new_file_ref,
38 scoped_refptr<TrackedCallback> callback) = 0; 39 scoped_refptr<TrackedCallback> callback) = 0;
39 virtual int32_t Query(PP_FileInfo* info, 40 virtual int32_t Query(PP_FileInfo* info,
40 scoped_refptr<TrackedCallback> callback) = 0; 41 scoped_refptr<TrackedCallback> callback) = 0;
41 virtual int32_t ReadDirectoryEntries( 42 virtual int32_t ReadDirectoryEntries(
42 const PP_ArrayOutput& output, 43 const PP_ArrayOutput& output,
43 scoped_refptr<TrackedCallback> callback) = 0; 44 scoped_refptr<TrackedCallback> callback) = 0;
44 45
45 // Internal function for use in proxying. Returns the internal CreateInfo 46 // Internal function for use in proxying. Returns the internal CreateInfo
46 // (the contained resource does not carry a ref on behalf of the caller). 47 // (the contained resource does not carry a ref on behalf of the caller).
47 virtual const FileRefCreateInfo& GetCreateInfo() const = 0; 48 virtual const FileRefCreateInfo& GetCreateInfo() const = 0;
48 49
49 // Private API 50 // Private API
50 virtual PP_Var GetAbsolutePath() = 0; 51 virtual PP_Var GetAbsolutePath() = 0;
51 }; 52 };
52 53
53 } // namespace thunk 54 } // namespace thunk
54 } // namespace ppapi 55 } // namespace ppapi
55 56
56 #endif // PPAPI_THUNK_PPB_FILE_REF_API_H_ 57 #endif // PPAPI_THUNK_PPB_FILE_REF_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698