Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1076)

Side by Side Diff: chrome/browser/sync/glue/extension_setting_data_type_controller.h

Issue 7775008: Enable sync for the settings from the Extension Settings API. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Review #1 Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__
6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__
7 #pragma once
8
9 #include <string>
10
11 #include "base/compiler_specific.h"
12 #include "chrome/browser/sync/glue/non_frontend_data_type_controller.h"
13 #include "chrome/browser/sync/profile_sync_factory.h"
14
15 namespace browser_sync {
16
17 class ExtensionSettingDataTypeController
18 : public NonFrontendDataTypeController {
19 public:
20 ExtensionSettingDataTypeController(
21 ProfileSyncFactory* profile_sync_factory,
22 Profile* profile,
23 ProfileSyncService* profile_sync_service);
24 virtual ~ExtensionSettingDataTypeController();
25
26 // NonFrontendDataTypeController implementation
27 virtual syncable::ModelType type() const OVERRIDE;
28 virtual browser_sync::ModelSafeGroup model_safe_group() const OVERRIDE;
29
30 private:
31 // NonFrontendDataTypeController implementation.
32 virtual bool StartModels() OVERRIDE;
33 virtual bool StartAssociationAsync() OVERRIDE;
34 virtual void CreateSyncComponents() OVERRIDE;
35 virtual bool StopAssociationAsync() OVERRIDE;
36 virtual void RecordUnrecoverableError(
37 const tracked_objects::Location& from_here,
38 const std::string& message) OVERRIDE;
39 virtual void RecordAssociationTime(base::TimeDelta time) OVERRIDE;
40 virtual void RecordStartFailure(StartResult result) OVERRIDE;
41
42 ProfileSyncService* profile_sync_service_;
43
44 DISALLOW_COPY_AND_ASSIGN(ExtensionSettingDataTypeController);
45 };
46
47 } // namespace browser_sync
48
49 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_SETTING_DATA_TYPE_CONTROLLER_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698