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

Unified Diff: chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h

Issue 98803002: Dispatch FileStatus change events for LocalToRemote sync too (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h
diff --git a/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h b/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h
index 978ea956dcde30cd1b3af983cac25bc9038ee447..7ecbffa59c8045b15c4ab8aa20153ce999647f4f 100644
--- a/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h
+++ b/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h
@@ -10,6 +10,7 @@
#include "base/memory/weak_ptr.h"
#include "chrome/browser/google_apis/gdata_errorcode.h"
#include "chrome/browser/sync_file_system/file_change.h"
+#include "chrome/browser/sync_file_system/sync_action.h"
#include "chrome/browser/sync_file_system/sync_callbacks.h"
#include "chrome/browser/sync_file_system/sync_file_metadata.h"
#include "chrome/browser/sync_file_system/sync_task.h"
@@ -43,6 +44,10 @@ class LocalToRemoteSyncer : public SyncTask {
virtual ~LocalToRemoteSyncer();
virtual void Run(const SyncStatusCallback& callback) OVERRIDE;
+ const fileapi::FileSystemURL& url() const { return url_; }
+ const base::FilePath& target_path() const { return target_path_; }
+ SyncAction sync_action() const { return sync_action_; }
+
private:
void SyncCompleted(const SyncStatusCallback& callback,
SyncStatusCode status);
@@ -102,6 +107,7 @@ class LocalToRemoteSyncer : public SyncTask {
FileChange local_change_;
base::FilePath local_path_;
fileapi::FileSystemURL url_;
+ SyncAction sync_action_;
scoped_ptr<FileTracker> remote_file_tracker_;
scoped_ptr<FileTracker> remote_parent_folder_tracker_;
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698