| 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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 // backend is because if we had encountered an unrecoverable error we don't | 610 // backend is because if we had encountered an unrecoverable error we don't |
| 611 // want to startup once more. | 611 // want to startup once more. |
| 612 virtual void ReconfigureDatatypeManager(); | 612 virtual void ReconfigureDatatypeManager(); |
| 613 | 613 |
| 614 // Called when the user changes the sync configuration, to update the UMA | 614 // Called when the user changes the sync configuration, to update the UMA |
| 615 // stats. | 615 // stats. |
| 616 void UpdateSelectedTypesHistogram( | 616 void UpdateSelectedTypesHistogram( |
| 617 bool sync_everything, | 617 bool sync_everything, |
| 618 const syncable::ModelTypeSet chosen_types) const; | 618 const syncable::ModelTypeSet chosen_types) const; |
| 619 | 619 |
| 620 #if defined(OS_CHROMEOS) |
| 621 // Refresh spare sync bootstrap token for re-enabling the sync service. |
| 622 // Called on successful sign-in notifications. |
| 623 void RefreshSpareBootstrapToken(const std::string& passphrase); |
| 624 #endif |
| 625 |
| 620 // Factory used to create various dependent objects. | 626 // Factory used to create various dependent objects. |
| 621 scoped_ptr<ProfileSyncComponentsFactory> factory_; | 627 scoped_ptr<ProfileSyncComponentsFactory> factory_; |
| 622 | 628 |
| 623 // The profile whose data we are synchronizing. | 629 // The profile whose data we are synchronizing. |
| 624 Profile* profile_; | 630 Profile* profile_; |
| 625 | 631 |
| 626 // The class that handles getting, setting, and persisting sync | 632 // The class that handles getting, setting, and persisting sync |
| 627 // preferences. | 633 // preferences. |
| 628 browser_sync::SyncPrefs sync_prefs_; | 634 browser_sync::SyncPrefs sync_prefs_; |
| 629 | 635 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 bool setup_in_progress_; | 743 bool setup_in_progress_; |
| 738 | 744 |
| 739 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 745 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 740 }; | 746 }; |
| 741 | 747 |
| 742 bool ShouldShowActionOnUI( | 748 bool ShouldShowActionOnUI( |
| 743 const browser_sync::SyncProtocolError& error); | 749 const browser_sync::SyncProtocolError& error); |
| 744 | 750 |
| 745 | 751 |
| 746 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 752 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |