Index: chrome/browser/sync/invalidation_service.h |
diff --git a/chrome/browser/sync/invalidation_service.h b/chrome/browser/sync/invalidation_service.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..16e41525d41844806553cc6c8b0a54fe83126cdc |
--- /dev/null |
+++ b/chrome/browser/sync/invalidation_service.h |
@@ -0,0 +1,27 @@ |
+// 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_INVALIDATION_SERVICE_H_ |
+#define CHROME_BROWSER_SYNC_INVALIDATION_SERVICE_H_ |
+ |
+#include "sync/notifier/invalidation_util.h" |
+ |
+namespace syncer { |
+class SyncNotifierObserver; |
+} // namespace syncer |
+ |
+// TODO(dcheng): Add an interesting comment here. |
+class InvalidationService { |
akalin
2012/08/10 23:07:10
this name is confusing, since eventually non-servi
dcheng
2012/08/13 20:44:14
I agree that this is not a great name. I am taking
|
+ public: |
+ virtual ~InvalidationService() { } |
+ |
+ // Updates the set of ObjectIds associated with a given |handler|. |
+ // Passing an empty ObjectIdSet will unregister |handler|. |
+ // There should be at most one handler registered per object id. |
+ virtual void UpdateRegisteredInvalidationIds( |
+ syncer::SyncNotifierObserver* handler, |
+ const syncer::ObjectIdSet& ids) = 0; |
+}; |
+ |
+#endif // CHROME_BROWSER_SYNC_INVALIDATION_SERVICE_H_ |