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

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

Issue 10196007: gdata: Get rid of GetProgressStatusList() and friends (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years, 8 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/gdata_file_system.h
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system.h b/chrome/browser/chromeos/gdata/gdata_file_system.h
index 6e618940f633a1deb8b51892f1d57944a6a417bf..74c68be4ddbeeabfdd35e0e9a51ec92c7336c7f5 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.h
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.h
@@ -332,21 +332,9 @@ class GDataFileSystemInterface {
const std::string& resource_id,
const GetFileCallback& callback) = 0;
- // Obtains the list of currently active operations.
- virtual std::vector<GDataOperationRegistry::ProgressStatus>
- GetProgressStatusList() = 0;
-
- // Cancels ongoing operation for a given |file_path|. Returns true if
- // the operation was found and canceled.
- virtual bool CancelOperation(const FilePath& file_path) = 0;
-
- // Add operation observer.
- virtual void AddOperationObserver(
- GDataOperationRegistry::Observer* observer) = 0;
-
- // Remove operation observer.
- virtual void RemoveOperationObserver(
- GDataOperationRegistry::Observer* observer) = 0;
+ // Gets the operation registry that manages all operations performed through
+ // the GDataFileSystem object.
+ virtual GDataOperationRegistry* GetOperationRegistry() = 0;
// Gets the cache state of file corresponding to |resource_id| and |md5| if it
// exists on disk.
@@ -444,13 +432,7 @@ class GDataFileSystem : public GDataFileSystemInterface,
virtual void GetFileByResourceId(
const std::string& resource_id,
const GetFileCallback& callback) OVERRIDE;
- virtual std::vector<GDataOperationRegistry::ProgressStatus>
- GetProgressStatusList() OVERRIDE;
- virtual bool CancelOperation(const FilePath& file_path) OVERRIDE;
- virtual void AddOperationObserver(
- GDataOperationRegistry::Observer* observer) OVERRIDE;
- virtual void RemoveOperationObserver(
- GDataOperationRegistry::Observer* observer) OVERRIDE;
+ virtual GDataOperationRegistry* GetOperationRegistry() OVERRIDE;
virtual void GetCacheState(const std::string& resource_id,
const std::string& md5,
const GetCacheStateCallback& callback) OVERRIDE;
« no previous file with comments | « chrome/browser/chromeos/extensions/file_browser_private_api.cc ('k') | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698