Home | History | Annotate | Download | only in glue
      1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_
      6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_
      7 #pragma once
      8 
      9 #include "chrome/browser/sync/glue/autofill_data_type_controller.h"
     10 #include "chrome/browser/sync/profile_sync_factory.h"
     11 
     12 namespace browser_sync {
     13 
     14 class AutofillProfileDataTypeController : public AutofillDataTypeController {
     15  public:
     16   AutofillProfileDataTypeController(
     17       ProfileSyncFactory* profile_sync_factory,
     18       Profile* profile,
     19       ProfileSyncService* sync_service);
     20   virtual ~AutofillProfileDataTypeController();
     21 
     22   virtual syncable::ModelType type() const;
     23 
     24   virtual std::string name() const;
     25 
     26  protected:
     27   virtual ProfileSyncFactory::SyncComponents CreateSyncComponents(
     28       ProfileSyncService* profile_sync_service,
     29       WebDatabase* web_database,
     30       PersonalDataManager* personal_data,
     31       browser_sync::UnrecoverableErrorHandler* error_handler);
     32 };
     33 
     34 }  // namespace browser_sync
     35 
     36 #endif  // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_
     37