Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / sync / glue / autofill_data_type_controller.h
index b35fbad..f8f8b59 100644 (file)
 #include "base/compiler_specific.h"
 #include "base/gtest_prod_util.h"
 #include "base/memory/ref_counted.h"
-#include "chrome/browser/sync/glue/non_ui_data_type_controller.h"
+#include "components/sync_driver/non_ui_data_type_controller.h"
+
+class Profile;
+class ProfileSyncComponentsFactory;
 
 namespace autofill {
 class AutofillWebDataService;
@@ -20,43 +23,38 @@ namespace browser_sync {
 
 // A class that manages the startup and shutdown of autofill sync.
 class AutofillDataTypeController
-    : public NonUIDataTypeController {
+    : public sync_driver::NonUIDataTypeController {
  public:
   AutofillDataTypeController(
       ProfileSyncComponentsFactory* profile_sync_factory,
-      Profile* profile,
-      ProfileSyncService* sync_service);
+      Profile* profile);
 
   // NonUIDataTypeController implementation.
-  virtual syncer::ModelType type() const OVERRIDE;
-  virtual syncer::ModelSafeGroup model_safe_group() const OVERRIDE;
+  syncer::ModelType type() const override;
+  syncer::ModelSafeGroup model_safe_group() const override;
 
   // NonFrontendDatatypeController override, needed as stop-gap until bug
   // 163431 is addressed / implemented.
-  virtual void StartAssociating(const StartCallback& start_callback) OVERRIDE;
+  void StartAssociating(const StartCallback& start_callback) override;
 
  protected:
-  virtual ~AutofillDataTypeController();
+  ~AutofillDataTypeController() override;
 
   // NonUIDataTypeController implementation.
-  virtual bool PostTaskOnBackendThread(
-      const tracked_objects::Location& from_here,
-      const base::Closure& task) OVERRIDE;
-  virtual bool StartModels() OVERRIDE;
+  bool PostTaskOnBackendThread(const tracked_objects::Location& from_here,
+                               const base::Closure& task) override;
+  bool StartModels() override;
 
  private:
   friend class AutofillDataTypeControllerTest;
   FRIEND_TEST_ALL_PREFIXES(AutofillDataTypeControllerTest, StartWDSReady);
   FRIEND_TEST_ALL_PREFIXES(AutofillDataTypeControllerTest, StartWDSNotReady);
 
-  // Self-invoked on the DB thread to call the AutocompleteSyncableService with
-  // an updated value of autofill culling settings.
-  void UpdateAutofillCullingSettings(bool cull_expired_entries,
-      scoped_refptr<autofill::AutofillWebDataService> web_data_service);
-
   // Callback once WebDatabase has loaded.
   void WebDatabaseLoaded();
 
+  Profile* const profile_;
+
   DISALLOW_COPY_AND_ASSIGN(AutofillDataTypeController);
 };