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

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

Issue 145173010: drive: Merge ContentUpdatePerformer to EntryUpdatePerformer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: please review this Created 6 years, 11 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 c3a36016524ebadf405629eaee727bc4929f8ce5..3eaad060ec0c5b2743cf5df5c4cfed49056a132e 100644
--- a/chrome/browser/chromeos/drive/sync_client.h
+++ b/chrome/browser/chromeos/drive/sync_client.h
@@ -29,7 +29,6 @@ struct ClientContext;
namespace file_system {
class DownloadOperation;
class OperationObserver;
-class ContentUpdatePerformer;
}
namespace internal {
@@ -88,8 +87,7 @@ class SyncClient {
// Types of sync tasks.
enum SyncType {
FETCH, // Fetch a file from the Drive server.
- UPLOAD, // Upload a file to the Drive server.
- UPDATE, // Updates an entry's metadata on the Drive server.
+ UPDATE, // Updates an entry's metadata or content on the Drive server.
};
// States of sync tasks.
@@ -112,11 +110,6 @@ class SyncClient {
void AddFetchTaskInternal(const std::string& local_id,
const base::TimeDelta& delay);
- // Adds a UPLOAD task.
- void AddUploadTaskInternal(const ClientContext& context,
- const std::string& local_id,
- const base::TimeDelta& delay);
-
// Adds a UPDATE task.
void AddUpdateTaskInternal(const ClientContext& context,
const std::string& local_id,
@@ -132,7 +125,6 @@ class SyncClient {
// Called when the local IDs of files in the backlog are obtained.
void OnGetLocalIdsOfBacklog(const std::vector<std::string>* to_fetch,
- const std::vector<std::string>* to_upload,
const std::vector<std::string>* to_update);
// Adds fetch tasks.
@@ -163,9 +155,6 @@ class SyncClient {
// Used to fetch pinned files.
scoped_ptr<file_system::DownloadOperation> download_operation_;
- // Used to upload committed files.
- scoped_ptr<file_system::ContentUpdatePerformer> content_update_performer_;
-
// Used to update entry metadata.
scoped_ptr<EntryUpdatePerformer> entry_update_performer_;
« no previous file with comments | « chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc ('k') | chrome/browser/chromeos/drive/sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698