OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 // backend is because if we had encountered an unrecoverable error we don't | 618 // backend is because if we had encountered an unrecoverable error we don't |
619 // want to startup once more. | 619 // want to startup once more. |
620 virtual void ReconfigureDatatypeManager(); | 620 virtual void ReconfigureDatatypeManager(); |
621 | 621 |
622 // Called when the user changes the sync configuration, to update the UMA | 622 // Called when the user changes the sync configuration, to update the UMA |
623 // stats. | 623 // stats. |
624 void UpdateSelectedTypesHistogram( | 624 void UpdateSelectedTypesHistogram( |
625 bool sync_everything, | 625 bool sync_everything, |
626 const syncable::ModelTypeSet chosen_types) const; | 626 const syncable::ModelTypeSet chosen_types) const; |
627 | 627 |
| 628 #if defined(OS_CHROMEOS) |
| 629 // Refresh spare sync bootstrap token for re-enabling the sync service. |
| 630 // Called on successful sign-in notifications. |
| 631 void RefreshSpareBootstrapToken(const std::string& passphrase); |
| 632 #endif |
| 633 |
628 // Factory used to create various dependent objects. | 634 // Factory used to create various dependent objects. |
629 scoped_ptr<ProfileSyncComponentsFactory> factory_; | 635 scoped_ptr<ProfileSyncComponentsFactory> factory_; |
630 | 636 |
631 // The profile whose data we are synchronizing. | 637 // The profile whose data we are synchronizing. |
632 Profile* profile_; | 638 Profile* profile_; |
633 | 639 |
634 // The class that handles getting, setting, and persisting sync | 640 // The class that handles getting, setting, and persisting sync |
635 // preferences. | 641 // preferences. |
636 browser_sync::SyncPrefs sync_prefs_; | 642 browser_sync::SyncPrefs sync_prefs_; |
637 | 643 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 bool setup_in_progress_; | 751 bool setup_in_progress_; |
746 | 752 |
747 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 753 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
748 }; | 754 }; |
749 | 755 |
750 bool ShouldShowActionOnUI( | 756 bool ShouldShowActionOnUI( |
751 const browser_sync::SyncProtocolError& error); | 757 const browser_sync::SyncProtocolError& error); |
752 | 758 |
753 | 759 |
754 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 760 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |