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

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

Issue 10832254: gdata: Remove use of FindEntryByPathSync() from RemoveEntryFromNonRootDirectory() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: just rebase 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 | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | 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_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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 387 // Part of MoveEntryFromRootDirectory(). Called after
388 // GetEntryInfoPairByPaths() is complete. |callback| must not be null. 388 // GetEntryInfoPairByPaths() is complete. |callback| must not be null.
389 void MoveEntryFromRootDirectoryAfterGetEntryInfoPair( 389 void MoveEntryFromRootDirectoryAfterGetEntryInfoPair(
390 const FileOperationCallback& callback, 390 const FileOperationCallback& callback,
391 scoped_ptr<EntryInfoPairResult> result); 391 scoped_ptr<EntryInfoPairResult> result);
392 392
393 // Part of RemoveEntryFromNonRootDirectory(). Called after
394 // GetEntryInfoPairByPaths() is complete. |callback| must not be null.
395 void RemoveEntryFromNonRootDirectoryAfterEntryInfoPair(
396 const FileMoveCallback& callback,
397 scoped_ptr<EntryInfoPairResult> result);
398
393 // Removes a file or directory at |file_path| from the current directory if 399 // Removes a file or directory at |file_path| from the current directory if
394 // it's not in the root directory. This essentially moves an entry to the 400 // it's not in the root directory. This essentially moves an entry to the
395 // root directory on the server side. 401 // root directory on the server side.
396 // 402 //
397 // Can be called from UI thread. |callback| is run on the calling thread. 403 // Can be called from UI thread. |callback| is run on the calling thread.
398 // |callback| must not be null. 404 // |callback| must not be null.
399 void RemoveEntryFromNonRootDirectory(const FileMoveCallback& callback, 405 void RemoveEntryFromNonRootDirectory(const FileMoveCallback& callback,
400 GDataFileError error, 406 GDataFileError error,
401 const FilePath& file_path); 407 const FilePath& file_path);
402 408
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 // invalidate the weak pointers before any other members are destroyed. 865 // invalidate the weak pointers before any other members are destroyed.
860 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_; 866 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_;
861 // Unlike other classes, we need this as we need this to redirect a task 867 // Unlike other classes, we need this as we need this to redirect a task
862 // from IO thread to UI thread. 868 // from IO thread to UI thread.
863 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; 869 base::WeakPtr<GDataFileSystem> ui_weak_ptr_;
864 }; 870 };
865 871
866 } // namespace gdata 872 } // namespace gdata
867 873
868 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 874 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698