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

Unified Diff: chrome/browser/chromeos/gdata/drive_service_interface.h

Issue 10939011: Reland "Revert 156830 - drive: Stop exposing operation_registry() from DriveServiceInterface" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/drive_service_interface.h
diff --git a/chrome/browser/chromeos/gdata/drive_service_interface.h b/chrome/browser/chromeos/gdata/drive_service_interface.h
index a9d6ae194e64f8e3bb22e29a2847cb62ffe0f5e3..bc55152a59cb0f5b3e2140dd4e12a39f051d7f09 100644
--- a/chrome/browser/chromeos/gdata/drive_service_interface.h
+++ b/chrome/browser/chromeos/gdata/drive_service_interface.h
@@ -45,7 +45,13 @@ enum DocumentExportFormat {
class DriveServiceObserver {
public:
// Triggered when the service gets ready to perform operations.
- virtual void OnReadyToPerformOperations() = 0;
+ virtual void OnReadyToPerformOperations() {}
+
+ // Called when an operation started, made some progress, or finished.
+ virtual void OnProgressUpdate(const OperationProgressStatusList& list) {}
+
+ // Called when GData authentication failed.
+ virtual void OnAuthenticationFailed() {}
protected:
virtual ~DriveServiceObserver() {}
@@ -74,15 +80,19 @@ class DriveServiceInterface {
// Removes an observer.
virtual void RemoveObserver(DriveServiceObserver* observer) = 0;
- // Retrieves the operation registry.
- virtual OperationRegistry* operation_registry() const = 0;
-
// True if ready to start operations.
virtual bool CanStartOperation() const = 0;
// Cancels all in-flight operations.
virtual void CancelAll() = 0;
+ // Cancels ongoing operation for a given virtual |file_path|. Returns true if
+ // the operation was found and canceled.
+ virtual bool CancelForFilePath(const FilePath& file_path) = 0;
+
+ // Obtains the list of currently active operations.
+ virtual OperationProgressStatusList GetProgressStatusList() const = 0;
+
// Authentication service:
// Authenticates the user by fetching the auth token as
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_protocol_handler.cc ('k') | chrome/browser/chromeos/gdata/gdata_contacts_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698