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

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

Issue 10790126: gdata: Remove use of GetGDataEntryByPath() from Rename (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 const FilePath::StringType& new_name, 352 const FilePath::StringType& new_name,
353 const FileOperationCallback& callback); 353 const FileOperationCallback& callback);
354 354
355 // Renames a file or directory at |file_path| to |new_name|. 355 // Renames a file or directory at |file_path| to |new_name|.
356 // 356 //
357 // Can be called from UI thread. |callback| is run on the calling thread. 357 // Can be called from UI thread. |callback| is run on the calling thread.
358 void Rename(const FilePath& file_path, 358 void Rename(const FilePath& file_path,
359 const FilePath::StringType& new_name, 359 const FilePath::StringType& new_name,
360 const FilePathUpdateCallback& callback); 360 const FilePathUpdateCallback& callback);
361 361
362 // Part of Rename(). Called after GetEntryInfoByPath() is complete.
363 void RenameAfterGetEntryInfo(const FilePath& file_path,
364 const FilePath::StringType& new_name,
365 const FilePathUpdateCallback& callback,
366 GDataFileError error,
367 scoped_ptr<GDataEntryProto> entry_proto);
368
362 // Adds a file or directory at |file_path| to the directory at |dir_path|. 369 // Adds a file or directory at |file_path| to the directory at |dir_path|.
363 // 370 //
364 // Can be called from UI thread. |callback| is run on the calling thread. 371 // Can be called from UI thread. |callback| is run on the calling thread.
365 void AddEntryToDirectory(const FilePath& dir_path, 372 void AddEntryToDirectory(const FilePath& dir_path,
366 const FileOperationCallback& callback, 373 const FileOperationCallback& callback,
367 GDataFileError error, 374 GDataFileError error,
368 const FilePath& file_path); 375 const FilePath& file_path);
369 376
370 // Removes a file or directory at |file_path| from the directory at 377 // Removes a file or directory at |file_path| from the directory at
371 // |dir_path| and moves it to the root directory. 378 // |dir_path| and moves it to the root directory.
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; 871 base::WeakPtr<GDataFileSystem> ui_weak_ptr_;
865 872
866 ObserverList<Observer> observers_; 873 ObserverList<Observer> observers_;
867 874
868 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 875 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
869 }; 876 };
870 877
871 } // namespace gdata 878 } // namespace gdata
872 879
873 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 880 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698