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

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

Issue 10824303: gdata: Remove FindEntryByPathAndRunSync() from GDataWapiFeedLoader. (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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 FindMissingDirectoryResult FindFirstMissingParentDirectory( 531 FindMissingDirectoryResult FindFirstMissingParentDirectory(
532 const FilePath& directory_path, 532 const FilePath& directory_path,
533 GURL* last_dir_content_url, 533 GURL* last_dir_content_url,
534 FilePath* first_missing_parent_path); 534 FilePath* first_missing_parent_path);
535 535
536 // Callback for handling results of ReloadFeedFromServerIfNeeded() initiated 536 // Callback for handling results of ReloadFeedFromServerIfNeeded() initiated
537 // from CheckForUpdates(). This callback checks whether feed is successfully 537 // from CheckForUpdates(). This callback checks whether feed is successfully
538 // reloaded, and in case of failure, restores the content origin of the root 538 // reloaded, and in case of failure, restores the content origin of the root
539 // directory. 539 // directory.
540 void OnUpdateChecked(ContentOrigin initial_origin, 540 void OnUpdateChecked(ContentOrigin initial_origin,
541 GDataFileError error, 541 GDataFileError error);
542 GDataEntry* entry);
543 542
544 // Runs the callback and notifies that the initial load is finished. 543 // Finds the entry for |search_file_path| synchronously and runs the
544 // callback, then notifies that the initial load is finished.
545 // |callback| must not be null. 545 // |callback| must not be null.
546 void RunAndNotifyInitialLoadFinished(const FindEntryCallback& callback, 546 void FindAndNotifyInitialLoadFinished(const FilePath& search_file_path,
547 GDataFileError error, 547 const FindEntryCallback& callback,
548 GDataEntry* entry); 548 GDataFileError error);
549 549
550 // Helper function that completes bookkeeping tasks related to 550 // Helper function that completes bookkeeping tasks related to
551 // completed file transfer. 551 // completed file transfer.
552 void OnTransferCompleted(const FileOperationCallback& callback, 552 void OnTransferCompleted(const FileOperationCallback& callback,
553 GDataFileError error, 553 GDataFileError error,
554 scoped_ptr<UploadFileInfo> upload_file_info); 554 scoped_ptr<UploadFileInfo> upload_file_info);
555 555
556 // Kicks off file upload once it receives |file_size| and |content_type|. 556 // Kicks off file upload once it receives |file_size| and |content_type|.
557 void StartFileUploadOnUIThread(const StartFileUploadParams& params, 557 void StartFileUploadOnUIThread(const StartFileUploadParams& params,
558 GDataFileError* error, 558 GDataFileError* error,
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 // invalidate the weak pointers before any other members are destroyed. 831 // invalidate the weak pointers before any other members are destroyed.
832 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_; 832 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_;
833 // Unlike other classes, we need this as we need this to redirect a task 833 // Unlike other classes, we need this as we need this to redirect a task
834 // from IO thread to UI thread. 834 // from IO thread to UI thread.
835 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; 835 base::WeakPtr<GDataFileSystem> ui_weak_ptr_;
836 }; 836 };
837 837
838 } // namespace gdata 838 } // namespace gdata
839 839
840 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 840 #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