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

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

Issue 8065016: [Sync] Refactor non-frontend DTC to handle new API properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and self review Created 9 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/glue/search_engine_data_type_controller.h
diff --git a/chrome/browser/sync/glue/search_engine_data_type_controller.h b/chrome/browser/sync/glue/search_engine_data_type_controller.h
index bf948544ad382c73c45d36ac8814ce1ca42feb21..622fe6fbfad3e8d31a568fc63f6a3aa3604e41a8 100644
--- a/chrome/browser/sync/glue/search_engine_data_type_controller.h
+++ b/chrome/browser/sync/glue/search_engine_data_type_controller.h
@@ -10,11 +10,14 @@
#include "base/compiler_specific.h"
#include "chrome/browser/sync/glue/frontend_data_type_controller.h"
+#include "chrome/browser/sync/glue/generic_change_processor.h"
#include "content/common/notification_observer.h"
#include "content/common/notification_registrar.h"
namespace browser_sync {
+class GenericChangeProcessor;
+
class SearchEngineDataTypeController : public FrontendDataTypeController,
public NotificationObserver {
public:
@@ -32,6 +35,9 @@ class SearchEngineDataTypeController : public FrontendDataTypeController,
const NotificationSource& source,
const NotificationDetails& details) OVERRIDE;
+ protected:
+ virtual ChangeProcessor* change_processor() const OVERRIDE;
+
private:
// FrontendDataTypeController implementations.
virtual bool StartModels() OVERRIDE;
@@ -43,6 +49,8 @@ class SearchEngineDataTypeController : public FrontendDataTypeController,
virtual void RecordAssociationTime(base::TimeDelta time) OVERRIDE;
virtual void RecordStartFailure(StartResult result) OVERRIDE;
+ scoped_ptr<GenericChangeProcessor> change_processor_;
+
NotificationRegistrar registrar_;
DISALLOW_COPY_AND_ASSIGN(SearchEngineDataTypeController);

Powered by Google App Engine
This is Rietveld 408576698