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

Unified Diff: chrome/browser/sync/glue/data_type_manager_observer.h

Issue 10834351: [sync] Divorce DataTypeManager from NotificationService notifications by creating a new DataTypeMa… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore expectations in DTMImpl unittest + Treat observer_ as const Created 8 years, 4 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/glue/data_type_manager_observer.h
diff --git a/chrome/browser/sync/glue/data_type_manager_observer.h b/chrome/browser/sync/glue/data_type_manager_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..9a86c1c3d4de30442c49387c4ab528f05651e8ea
--- /dev/null
+++ b/chrome/browser/sync/glue/data_type_manager_observer.h
@@ -0,0 +1,28 @@
+// Copyright 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_GLUE_DATA_TYPE_MANAGER_OBSERVER_H_
+#define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_OBSERVER_H_
+
+#include "chrome/browser/sync/glue/data_type_manager.h"
+
+namespace browser_sync {
+
+// Various data type configuration events can be consumed by observing the
+// DataTypeManager through this interface.
+class DataTypeManagerObserver {
+ public:
+ virtual void OnConfigureBlocked() = 0;
+ virtual void OnConfigureDone(
+ const browser_sync::DataTypeManager::ConfigureResult& result) = 0;
+ virtual void OnConfigureRetry() = 0;
+ virtual void OnConfigureStart() = 0;
+
+ protected:
+ virtual ~DataTypeManagerObserver() { }
+};
+
+} // namespace browser_sync
+
+#endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_OBSERVER_H_
« no previous file with comments | « chrome/browser/sync/glue/data_type_manager_mock.cc ('k') | chrome/browser/sync/profile_sync_components_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698