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

Unified Diff: chrome/browser/sync_file_system/change_observer_interface.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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/local_change_processor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/change_observer_interface.h
diff --git a/chrome/browser/sync_file_system/change_observer_interface.h b/chrome/browser/sync_file_system/change_observer_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..60a571f3faaa5e8a106049981ff8ddab4c12181d
--- /dev/null
+++ b/chrome/browser/sync_file_system/change_observer_interface.h
@@ -0,0 +1,43 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_CHANGE_OBSERVER_INTERFACE_H_
+#define CHROME_BROWSER_SYNC_FILE_SYSTEM_CHANGE_OBSERVER_INTERFACE_H_
+
+#include "base/basictypes.h"
+
+namespace sync_file_system {
+
+class LocalChangeObserver {
+ public:
+ LocalChangeObserver() {}
+ virtual ~LocalChangeObserver() {}
+
+ // This is called when there're one ore more local changes are available.
+ // |pending_changes_hint| indicates the pending queue length to help sync
+ // scheduling but the value may not be accurately reflect the real-time
+ // value.
+ virtual void OnLocalChangeAvailable(int64 pending_changes_hint) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(LocalChangeObserver);
+};
+
+class RemoteChangeObserver {
+ public:
+ RemoteChangeObserver() {}
+ virtual ~RemoteChangeObserver() {}
+
+ // This is called when there're one ore more remote changes are available.
+ // |pending_changes_hint| indicates the pending queue length to help sync
+ // scheduling but the value may not be accurately reflect the real-time
+ // value.
+ virtual void OnRemoteChangeAvailable(int64 pending_changes_hint) = 0;
+ private:
+ DISALLOW_COPY_AND_ASSIGN(RemoteChangeObserver);
+};
+
+} // namespace sync_file_system
+
+#endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_CHANGE_OBSERVER_INTERFACE_H_
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/local_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698