Chromium Code Reviews| 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_SYNC_BACKUP_ROLLBACK_CONTROLLER_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_BACKUP_ROLLBACK_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_SYNC_BACKUP_ROLLBACK_CONTROLLER_H_ | 6 #define COMPONENTS_SYNC_DRIVER_BACKUP_ROLLBACK_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 | 10 |
| 11 class SigninManagerWrapper; | 11 class SigninManagerWrapper; |
| 12 | 12 |
| 13 namespace sync_driver { | 13 namespace sync_driver { |
| 14 class SyncPrefs; | 14 class SyncPrefs; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace browser_sync { | 17 namespace browser_sync { |
|
droger
2015/09/18 13:04:14
Delete lines 15-17: everything in sync_driver name
Abhishek
2015/09/18 14:00:49
Done.
| |
| 18 | 18 |
| 19 // BackupRollbackController takes two closures for starting backup/rollback | 19 // BackupRollbackController takes two closures for starting backup/rollback |
| 20 // process. It calls the closures according to user's signin status or | 20 // process. It calls the closures according to user's signin status or |
| 21 // received rollback command. Backup is not run when user signed in, even when | 21 // received rollback command. Backup is not run when user signed in, even when |
| 22 // sync is not running. | 22 // sync is not running. |
| 23 class BackupRollbackController { | 23 class BackupRollbackController { |
| 24 public: | 24 public: |
| 25 BackupRollbackController(sync_driver::SyncPrefs* sync_prefs, | 25 BackupRollbackController(sync_driver::SyncPrefs* sync_prefs, |
| 26 const SigninManagerWrapper* signin, | 26 const SigninManagerWrapper* signin, |
| 27 base::Closure start_backup, | 27 base::Closure start_backup, |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 51 // Use SigninManagerWrapper instead of SigninManagerBase so that | 51 // Use SigninManagerWrapper instead of SigninManagerBase so that |
| 52 // supervised users are treated like regular signed-in users. | 52 // supervised users are treated like regular signed-in users. |
| 53 const SigninManagerWrapper* signin_; | 53 const SigninManagerWrapper* signin_; |
| 54 | 54 |
| 55 base::Closure start_backup_; | 55 base::Closure start_backup_; |
| 56 base::Closure start_rollback_; | 56 base::Closure start_rollback_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(BackupRollbackController); | 58 DISALLOW_COPY_AND_ASSIGN(BackupRollbackController); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace browser_sync | 61 } // namespace browser_sync |
|
droger
2015/09/18 13:04:14
} // namespace sync_driver
Abhishek
2015/09/18 14:00:49
Done.
| |
| 62 | 62 |
| 63 #endif // CHROME_BROWSER_SYNC_BACKUP_ROLLBACK_CONTROLLER_H_ | 63 #endif // COMPONENTS_SYNC_DRIVER_BACKUP_ROLLBACK_CONTROLLER_H_ |
| OLD | NEW |