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