Home | History | Annotate | Download | only in glue
      1 // Copyright (c) 2012 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_EXTENSION_DATA_TYPE_CONTROLLER_H_
      6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_DATA_TYPE_CONTROLLER_H_
      7 
      8 #include <string>
      9 
     10 #include "base/compiler_specific.h"
     11 #include "components/sync_driver/generic_change_processor.h"
     12 #include "components/sync_driver/ui_data_type_controller.h"
     13 
     14 class Profile;
     15 
     16 namespace browser_sync {
     17 
     18 // TODO(zea): Rename this and ExtensionSettingsDTC to ExtensionOrApp*, since
     19 // both actually handle the APP datatypes as well.
     20 class ExtensionDataTypeController : public UIDataTypeController {
     21  public:
     22   ExtensionDataTypeController(
     23       syncer::ModelType type,  // Either EXTENSIONS or APPS.
     24       SyncApiComponentFactory* sync_factory,
     25       Profile* profile,
     26       const DisableTypeCallback& disable_callback);
     27 
     28  private:
     29   virtual ~ExtensionDataTypeController();
     30 
     31   // DataTypeController implementations.
     32   virtual bool StartModels() OVERRIDE;
     33 
     34   Profile* const profile_;
     35 
     36   DISALLOW_COPY_AND_ASSIGN(ExtensionDataTypeController);
     37 };
     38 
     39 }  // namespace browser_sync
     40 
     41 #endif  // CHROME_BROWSER_SYNC_GLUE_EXTENSION_DATA_TYPE_CONTROLLER_H_
     42