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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_file_system_interface.h

Issue 10854072: gdata: Remove use of FindEntryByPathSync() fromMoveOnUIThread() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update a comment Created 8 years, 4 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // This method also has the following assumptions/limitations that may be 213 // This method also has the following assumptions/limitations that may be
214 // relaxed or addressed later: 214 // relaxed or addressed later:
215 // - |dest_file_path| must not exist. 215 // - |dest_file_path| must not exist.
216 // - The parent of |dest_file_path| must already exist. 216 // - The parent of |dest_file_path| must already exist.
217 // 217 //
218 // The file entries represented by |src_file_path| and the parent directory 218 // The file entries represented by |src_file_path| and the parent directory
219 // of |dest_file_path| need to be present in the in-memory representation 219 // of |dest_file_path| need to be present in the in-memory representation
220 // of the file system. 220 // of the file system.
221 // 221 //
222 // Can be called from UI/IO thread. |callback| is run on the calling thread. 222 // Can be called from UI/IO thread. |callback| is run on the calling thread.
223 // |callback| must not be null.
223 virtual void Move(const FilePath& src_file_path, 224 virtual void Move(const FilePath& src_file_path,
224 const FilePath& dest_file_path, 225 const FilePath& dest_file_path,
225 const FileOperationCallback& callback) = 0; 226 const FileOperationCallback& callback) = 0;
226 227
227 // Removes |file_path| from the file system. If |is_recursive| is set and 228 // Removes |file_path| from the file system. If |is_recursive| is set and
228 // |file_path| represents a directory, we will also delete all of its 229 // |file_path| represents a directory, we will also delete all of its
229 // contained children elements. The file entry represented by |file_path| 230 // contained children elements. The file entry represented by |file_path|
230 // needs to be present in in-memory representation of the file system that 231 // needs to be present in in-memory representation of the file system that
231 // in order to be removed. 232 // in order to be removed.
232 // 233 //
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 const FilePath& virtual_dir_path, 353 const FilePath& virtual_dir_path,
353 scoped_ptr<DocumentEntry> entry, 354 scoped_ptr<DocumentEntry> entry,
354 const FilePath& file_content_path, 355 const FilePath& file_content_path,
355 GDataCache::FileOperationType cache_operation, 356 GDataCache::FileOperationType cache_operation,
356 const base::Closure& callback) = 0; 357 const base::Closure& callback) = 0;
357 }; 358 };
358 359
359 } // namespace gdata 360 } // namespace gdata
360 361
361 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ 362 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698