| Index: chrome/browser/sync/glue/generic_ui_data_type_controller.h
|
| diff --git a/chrome/browser/sync/glue/generic_ui_data_type_controller.h b/chrome/browser/sync/glue/generic_ui_data_type_controller.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a3e35e2a7f9557334c39e918d37e54716e7f1a12
|
| --- /dev/null
|
| +++ b/chrome/browser/sync/glue/generic_ui_data_type_controller.h
|
| @@ -0,0 +1,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_GENERIC_UI_DATA_TYPE_CONTROLLER_H__
|
| +#define CHROME_BROWSER_SYNC_GLUE_GENERIC_UI_DATA_TYPE_CONTROLLER_H__
|
| +#pragma once
|
| +
|
| +#include "chrome/browser/sync/glue/ui_data_type_controller.h"
|
| +
|
| +class Profile;
|
| +class ProfileSyncService;
|
| +class ProfileSyncComponentsFactory;
|
| +
|
| +namespace browser_sync {
|
| +
|
| +// Generic implementation of a UIDataTypeController. Useful for datatypes
|
| +// that have no extra dependencies (no special logic needed in
|
| +// Start/StopModels).
|
| +class GenericUIDataTypeController : public UIDataTypeController {
|
| + public:
|
| + GenericUIDataTypeController(
|
| + syncable::ModelType type,
|
| + ProfileSyncComponentsFactory* profile_sync_factory,
|
| + Profile* profile,
|
| + ProfileSyncService* sync_service);
|
| +
|
| + // The datatype this instance of GenericUIDataTypeController implements.
|
| + virtual syncable::ModelType type() const OVERRIDE;
|
| +
|
| + private:
|
| + // UIDataTypeController is RefCounted.
|
| + virtual ~GenericUIDataTypeController();
|
| +
|
| + syncable::ModelType type_;
|
| +};
|
| +
|
| +} // namespace browser_sync
|
| +
|
| +#endif // CHROME_BROWSER_SYNC_GLUE_GENERIC_UI_DATA_TYPE_CONTROLLER_H__
|
|
|