OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SYNC_DATA_TYPE_CONTROLLER
_H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SYNC_DATA_TYPE_CONTROLLER
_H_ |
6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SYNC_DATA_TYPE_CONTROLLER
_H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SYNC_DATA_TYPE_CONTROLLER
_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "components/sync_driver/data_type_controller.h" | 10 #include "components/sync_driver/data_type_controller.h" |
11 #include "components/sync_driver/ui_data_type_controller.h" | 11 #include "components/sync_driver/ui_data_type_controller.h" |
12 | 12 |
13 namespace browser_sync { | 13 namespace sync_driver { |
14 class SyncApiComponentFactory; | 14 class SyncApiComponentFactory; |
15 } | 15 } |
16 | 16 |
17 class Profile; | 17 class Profile; |
18 | 18 |
19 // A UIDataTypeController for supervised user sync datatypes, which enables or | 19 // A UIDataTypeController for supervised user sync datatypes, which enables or |
20 // disables these types based on the profile's IsSupervised state. | 20 // disables these types based on the profile's IsSupervised state. |
21 class SupervisedUserSyncDataTypeController | 21 class SupervisedUserSyncDataTypeController |
22 : public browser_sync::UIDataTypeController { | 22 : public sync_driver::UIDataTypeController { |
23 public: | 23 public: |
24 SupervisedUserSyncDataTypeController( | 24 SupervisedUserSyncDataTypeController( |
25 const DisableTypeCallback& disable_callback, | 25 const DisableTypeCallback& disable_callback, |
26 syncer::ModelType type, | 26 syncer::ModelType type, |
27 browser_sync::SyncApiComponentFactory* sync_factory, | 27 sync_driver::SyncApiComponentFactory* sync_factory, |
28 Profile* profile); | 28 Profile* profile); |
29 | 29 |
30 virtual bool ReadyForStart() const OVERRIDE; | 30 virtual bool ReadyForStart() const OVERRIDE; |
31 | 31 |
32 private: | 32 private: |
33 // DataTypeController is RefCounted. | 33 // DataTypeController is RefCounted. |
34 virtual ~SupervisedUserSyncDataTypeController(); | 34 virtual ~SupervisedUserSyncDataTypeController(); |
35 | 35 |
36 Profile* profile_; | 36 Profile* profile_; |
37 | 37 |
38 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSyncDataTypeController); | 38 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSyncDataTypeController); |
39 }; | 39 }; |
40 | 40 |
41 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SYNC_DATA_TYPE_CONTROL
LER_H_ | 41 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SYNC_DATA_TYPE_CONTROL
LER_H_ |
OLD | NEW |