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

Side by Side Diff: ppapi/proxy/file_ref_resource.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: merge MakeDirectory*() into MakeDirectory() Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PROXY_PPB_FILE_REF_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_FILE_REF_PROXY_H_
6 #define PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ 6 #define PPAPI_PROXY_PPB_FILE_REF_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 35
36 // Resource implementation. 36 // Resource implementation.
37 virtual thunk::PPB_FileRef_API* AsPPB_FileRef_API() OVERRIDE; 37 virtual thunk::PPB_FileRef_API* AsPPB_FileRef_API() OVERRIDE;
38 38
39 // PPB_FileRef_API implementation. 39 // PPB_FileRef_API implementation.
40 virtual PP_FileSystemType GetFileSystemType() const OVERRIDE; 40 virtual PP_FileSystemType GetFileSystemType() const OVERRIDE;
41 virtual PP_Var GetName() const OVERRIDE; 41 virtual PP_Var GetName() const OVERRIDE;
42 virtual PP_Var GetPath() const OVERRIDE; 42 virtual PP_Var GetPath() const OVERRIDE;
43 virtual PP_Resource GetParent() OVERRIDE; 43 virtual PP_Resource GetParent() OVERRIDE;
44 virtual int32_t MakeDirectory( 44 virtual int32_t MakeDirectory(
45 PP_Bool make_ancestors, 45 PP_Bool exclusive,
46 scoped_refptr<TrackedCallback> callback) OVERRIDE; 46 PP_Bool make_ancestors,
47 scoped_refptr<TrackedCallback> callback) OVERRIDE;
47 virtual int32_t Touch(PP_Time last_access_time, 48 virtual int32_t Touch(PP_Time last_access_time,
48 PP_Time last_modified_time, 49 PP_Time last_modified_time,
49 scoped_refptr<TrackedCallback> callback) OVERRIDE; 50 scoped_refptr<TrackedCallback> callback) OVERRIDE;
50 virtual int32_t Delete(scoped_refptr<TrackedCallback> callback) OVERRIDE; 51 virtual int32_t Delete(scoped_refptr<TrackedCallback> callback) OVERRIDE;
51 virtual int32_t Rename(PP_Resource new_file_ref, 52 virtual int32_t Rename(PP_Resource new_file_ref,
52 scoped_refptr<TrackedCallback> callback) OVERRIDE; 53 scoped_refptr<TrackedCallback> callback) OVERRIDE;
53 virtual int32_t Query(PP_FileInfo* info, 54 virtual int32_t Query(PP_FileInfo* info,
54 scoped_refptr<TrackedCallback> callback) OVERRIDE; 55 scoped_refptr<TrackedCallback> callback) OVERRIDE;
55 virtual int32_t ReadDirectoryEntries( 56 virtual int32_t ReadDirectoryEntries(
56 const PP_ArrayOutput& output, 57 const PP_ArrayOutput& output,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 scoped_refptr<StringVar> path_var_; 93 scoped_refptr<StringVar> path_var_;
93 scoped_refptr<StringVar> absolute_path_var_; 94 scoped_refptr<StringVar> absolute_path_var_;
94 95
95 DISALLOW_COPY_AND_ASSIGN(FileRefResource); 96 DISALLOW_COPY_AND_ASSIGN(FileRefResource);
96 }; 97 };
97 98
98 } // namespace proxy 99 } // namespace proxy
99 } // namespace ppapi 100 } // namespace ppapi
100 101
101 #endif // PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ 102 #endif // PPAPI_PROXY_PPB_FILE_REF_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698