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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h

Issue 528683002: [fsp] Remove the exclusive field from the CreateDirectory operation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a comment. Created 6 years, 3 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // can be called multiple times until |has_more| is set to false. On success 99 // can be called multiple times until |has_more| is set to false. On success
100 // it should return |length| bytes starting from |offset| in total. It can 100 // it should return |length| bytes starting from |offset| in total. It can
101 // return less only in case EOF is encountered. 101 // return less only in case EOF is encountered.
102 virtual AbortCallback ReadFile(int file_handle, 102 virtual AbortCallback ReadFile(int file_handle,
103 net::IOBuffer* buffer, 103 net::IOBuffer* buffer,
104 int64 offset, 104 int64 offset,
105 int length, 105 int length,
106 const ReadChunkReceivedCallback& callback) = 0; 106 const ReadChunkReceivedCallback& callback) = 0;
107 107
108 // Requests creating a directory. If |recursive| is passed, then all non 108 // Requests creating a directory. If |recursive| is passed, then all non
109 // existing directories on the path will be created. If |exclusive| is true, 109 // existing directories on the path will be created. The operation will fail
110 // then creating the directory will fail, if it already exists. 110 // if the target directory already exists.
111 virtual AbortCallback CreateDirectory( 111 virtual AbortCallback CreateDirectory(
112 const base::FilePath& directory_path, 112 const base::FilePath& directory_path,
113 bool exclusive,
114 bool recursive, 113 bool recursive,
115 const storage::AsyncFileUtil::StatusCallback& callback) = 0; 114 const storage::AsyncFileUtil::StatusCallback& callback) = 0;
116 115
117 // Requests creating a file. If the entry already exists, then the 116 // Requests creating a file. If the entry already exists, then the
118 // FILE_ERROR_EXISTS error must be returned. 117 // FILE_ERROR_EXISTS error must be returned.
119 virtual AbortCallback CreateFile( 118 virtual AbortCallback CreateFile(
120 const base::FilePath& file_path, 119 const base::FilePath& file_path,
121 const storage::AsyncFileUtil::StatusCallback& callback) = 0; 120 const storage::AsyncFileUtil::StatusCallback& callback) = 0;
122 121
123 // Requests deleting a directory. If |recursive| is passed and the entry is 122 // Requests deleting a directory. If |recursive| is passed and the entry is
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 virtual RequestManager* GetRequestManager() = 0; 161 virtual RequestManager* GetRequestManager() = 0;
163 162
164 // Returns a weak pointer to this object. 163 // Returns a weak pointer to this object.
165 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; 164 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0;
166 }; 165 };
167 166
168 } // namespace file_system_provider 167 } // namespace file_system_provider
169 } // namespace chromeos 168 } // namespace chromeos
170 169
171 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_ 170 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698