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

Unified Diff: chrome/browser/chromeos/drive/sync_client.h

Issue 16628003: drive: Remove FileCacheObserver::OnCacheCommitted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix PinAndUnpin Created 7 years, 6 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/drive/sync_client.h
diff --git a/chrome/browser/chromeos/drive/sync_client.h b/chrome/browser/chromeos/drive/sync_client.h
index bdbf2a9e4cb39438bffbe05294b9e5c2aa59e296..449458e1ef120c12b618e364de0184bee6ee14d6 100644
--- a/chrome/browser/chromeos/drive/sync_client.h
+++ b/chrome/browser/chromeos/drive/sync_client.h
@@ -69,7 +69,12 @@ class SyncClient : public FileCacheObserver {
const std::string& md5) OVERRIDE;
virtual void OnCacheUnpinned(const std::string& resource_id,
const std::string& md5) OVERRIDE;
- virtual void OnCacheCommitted(const std::string& resource_id) OVERRIDE;
+
+ // Adds a fetch task to the queue.
+ void AddFetchTask(const std::string& resource_id);
+
+ // Adds an upload task to the queue.
+ void AddUploadTask(const std::string& resource_id);
// Starts processing the backlog (i.e. pinned-but-not-filed files and
// dirty-but-not-uploaded files). Kicks off retrieval of the resource
@@ -85,12 +90,6 @@ class SyncClient : public FileCacheObserver {
// for testing.
std::vector<std::string> GetResourceIdsForTesting(SyncType sync_type) const;
- // Adds the resource ID to the queue. Used only for testing.
- void AddResourceIdForTesting(SyncType sync_type,
- const std::string& resource_id) {
- AddTaskToQueue(sync_type, resource_id);
- }
-
// Sets a delay for testing.
void set_delay_for_testing(const base::TimeDelta& delay) {
delay_ = delay;
« no previous file with comments | « chrome/browser/chromeos/drive/mock_file_cache_observer.h ('k') | chrome/browser/chromeos/drive/sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698