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

Unified Diff: chrome/browser/sync_file_system/sync_file_system_service.cc

Issue 11234025: Add skeleton code to wire Local- and Remote- file sync services (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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
« no previous file with comments | « chrome/browser/sync_file_system/sync_file_system_service.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/sync_file_system_service.cc
diff --git a/chrome/browser/sync_file_system/sync_file_system_service.cc b/chrome/browser/sync_file_system/sync_file_system_service.cc
index e4df2aa917bdf65d93ee6fde6f7831edf4c15180..3e2d7070aa9f90acc149ba24c63895e006721256 100644
--- a/chrome/browser/sync_file_system/sync_file_system_service.cc
+++ b/chrome/browser/sync_file_system/sync_file_system_service.cc
@@ -49,8 +49,22 @@ void SyncFileSystemService::InitializeForApp(
// TODO(tzik): Hook up remote service initialization code.
}
+void SyncFileSystemService::OnLocalChangeAvailable(int64 pending_changes) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_GE(pending_changes, 0);
+ pending_local_changes_ = pending_changes;
+}
+
+void SyncFileSystemService::OnRemoteChangeAvailable(int64 pending_changes) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_GE(pending_changes, 0);
+ pending_remote_changes_ = pending_changes;
+}
+
SyncFileSystemService::SyncFileSystemService(Profile* profile)
- : profile_(profile) {}
+ : profile_(profile),
+ pending_local_changes_(0),
+ pending_remote_changes_(0) {}
void SyncFileSystemService::Initialize(
scoped_ptr<LocalFileSyncService> local_file_service) {
« no previous file with comments | « chrome/browser/sync_file_system/sync_file_system_service.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698