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

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

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
Index: chrome/browser/sync_file_system/sync_file_system_service.h
diff --git a/chrome/browser/sync_file_system/sync_file_system_service.h b/chrome/browser/sync_file_system/sync_file_system_service.h
index 61918cf631b7c710c4183b925e8cca2139b8584b..650be95e175f8dbccfc8eeede38fb798ffc91a7d 100644
--- a/chrome/browser/sync_file_system/sync_file_system_service.h
+++ b/chrome/browser/sync_file_system/sync_file_system_service.h
@@ -13,6 +13,7 @@
#include "base/memory/singleton.h"
#include "chrome/browser/profiles/profile_keyed_service.h"
#include "chrome/browser/profiles/profile_keyed_service_factory.h"
+#include "chrome/browser/sync_file_system/change_observer_interface.h"
#include "webkit/fileapi/syncable/sync_status_code.h"
class GURL;
@@ -24,8 +25,13 @@ class FileSystemContext;
namespace sync_file_system {
class LocalFileSyncService;
+class LocalChangeObserver;
+class RemoteChangeObserver;
-class SyncFileSystemService : public ProfileKeyedService {
+class SyncFileSystemService
+ : public ProfileKeyedService,
+ public LocalChangeObserver,
+ public RemoteChangeObserver {
public:
typedef base::Callback<void(fileapi::SyncStatusCode status)> StatusCallback;
@@ -46,8 +52,17 @@ class SyncFileSystemService : public ProfileKeyedService {
void Initialize(scoped_ptr<LocalFileSyncService> local_file_service);
+ // RemoteChangeObserver overrides.
+ virtual void OnLocalChangeAvailable(int64 pending_changes) OVERRIDE;
+
+ // LocalChangeObserver overrides.
+ virtual void OnRemoteChangeAvailable(int64 pending_changes) OVERRIDE;
+
Profile* profile_;
+ int64 pending_local_changes_;
+ int64 pending_remote_changes_;
+
scoped_ptr<LocalFileSyncService> local_file_service_;
DISALLOW_COPY_AND_ASSIGN(SyncFileSystemService);
« no previous file with comments | « chrome/browser/sync_file_system/remote_change_processor.h ('k') | chrome/browser/sync_file_system/sync_file_system_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698