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

Side by Side Diff: chrome/browser/supervised_user/supervised_user_sync_data_type_controller.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
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 class Profile; 12 namespace sync_driver {
13
14 namespace syncer {
15 class SyncClient; 13 class SyncClient;
16 } 14 }
17 15
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 syncer::UIDataTypeController { 21 : public sync_driver::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 syncer::SyncClient* sync_client, 26 sync_driver::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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698