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

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

Issue 10827262: gdata: Remove use of FindEntryByPathSync() from MoveEntryFromRootDirectory() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 // another directory at |dir_path|. This function does nothing if 377 // another directory at |dir_path|. This function does nothing if
378 // |dir_path| points to the root directory. 378 // |dir_path| points to the root directory.
379 // 379 //
380 // Can be called from UI thread. |callback| is run on the calling thread. 380 // Can be called from UI thread. |callback| is run on the calling thread.
381 // |callback| must not be null. 381 // |callback| must not be null.
382 void MoveEntryFromRootDirectory(const FilePath& dir_path, 382 void MoveEntryFromRootDirectory(const FilePath& dir_path,
383 const FileOperationCallback& callback, 383 const FileOperationCallback& callback,
384 GDataFileError error, 384 GDataFileError error,
385 const FilePath& file_path); 385 const FilePath& file_path);
386 386
387 // Part of MoveEntryFromRootDirectory(). Called after
388 // GetEntryInfoPairByPaths() is complete. |callback| must not be null.
389 void MoveEntryFromRootDirectoryAfterGetEntryInfoPair(
390 const FileOperationCallback& callback,
391 scoped_ptr<EntryInfoPairResult> result);
392
387 // Removes a file or directory at |file_path| from the directory at 393 // Removes a file or directory at |file_path| from the directory at
388 // |dir_path| and moves it to the root directory. 394 // |dir_path| and moves it to the root directory.
389 // 395 //
390 // Can be called from UI thread. |callback| is run on the calling thread. 396 // Can be called from UI thread. |callback| is run on the calling thread.
391 void RemoveEntryFromDirectory(const FilePath& dir_path, 397 void RemoveEntryFromDirectory(const FilePath& dir_path,
392 const FileMoveCallback& callback, 398 const FileMoveCallback& callback,
393 GDataFileError error, 399 GDataFileError error,
394 const FilePath& file_path); 400 const FilePath& file_path);
395 401
396 // Removes file under |file_path| from in-memory snapshot of the file system. 402 // Removes file under |file_path| from in-memory snapshot of the file system.
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 // invalidate the weak pointers before any other members are destroyed. 855 // invalidate the weak pointers before any other members are destroyed.
850 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_; 856 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_;
851 // Unlike other classes, we need this as we need this to redirect a task 857 // Unlike other classes, we need this as we need this to redirect a task
852 // from IO thread to UI thread. 858 // from IO thread to UI thread.
853 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; 859 base::WeakPtr<GDataFileSystem> ui_weak_ptr_;
854 }; 860 };
855 861
856 } // namespace gdata 862 } // namespace gdata
857 863
858 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 864 #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