| 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;
|
|
|