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 "components/sync/driver/data_type_controller.h" | 9 #include "components/sync/driver/data_type_controller.h" |
10 #include "components/sync/driver/ui_data_type_controller.h" | 10 #include "components/sync/driver/ui_data_type_controller.h" |
11 | 11 |
12 namespace sync_driver { | 12 class Profile; |
| 13 |
| 14 namespace syncer { |
13 class SyncClient; | 15 class SyncClient; |
14 } | 16 } |
15 | 17 |
16 class Profile; | |
17 | |
18 // A UIDataTypeController for supervised user sync datatypes, which enables or | 18 // A UIDataTypeController for supervised user sync datatypes, which enables or |
19 // disables these types based on the profile's IsSupervised state. | 19 // disables these types based on the profile's IsSupervised state. |
20 class SupervisedUserSyncDataTypeController | 20 class SupervisedUserSyncDataTypeController |
21 : public sync_driver::UIDataTypeController { | 21 : public syncer::UIDataTypeController { |
22 public: | 22 public: |
23 // |dump_stack| is called when an unrecoverable error occurs. | 23 // |dump_stack| is called when an unrecoverable error occurs. |
24 SupervisedUserSyncDataTypeController(syncer::ModelType type, | 24 SupervisedUserSyncDataTypeController(syncer::ModelType type, |
25 const base::Closure& dump_stack, | 25 const base::Closure& dump_stack, |
26 sync_driver::SyncClient* sync_client, | 26 syncer::SyncClient* sync_client, |
27 Profile* profile); | 27 Profile* profile); |
28 ~SupervisedUserSyncDataTypeController() override; | 28 ~SupervisedUserSyncDataTypeController() override; |
29 | 29 |
30 bool ReadyForStart() const override; | 30 bool ReadyForStart() const override; |
31 | 31 |
32 private: | 32 private: |
33 Profile* profile_; | 33 Profile* profile_; |
34 | 34 |
35 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSyncDataTypeController); | 35 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSyncDataTypeController); |
36 }; | 36 }; |
37 | 37 |
38 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SYNC_DATA_TYPE_CONTROL
LER_H_ | 38 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SYNC_DATA_TYPE_CONTROL
LER_H_ |
OLD | NEW |