| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 // progress, the sync system is already authenticated, or some error | 275 // progress, the sync system is already authenticated, or some error |
| 276 // occurred preventing the action. We make it the duty of ProfileSyncService | 276 // occurred preventing the action. We make it the duty of ProfileSyncService |
| 277 // to open the dialog to easily ensure only one is ever showing. | 277 // to open the dialog to easily ensure only one is ever showing. |
| 278 virtual bool SetupInProgress() const; | 278 virtual bool SetupInProgress() const; |
| 279 bool WizardIsVisible() const { | 279 bool WizardIsVisible() const { |
| 280 return wizard_.IsVisible(); | 280 return wizard_.IsVisible(); |
| 281 } | 281 } |
| 282 | 282 |
| 283 SyncSetupWizard& get_wizard() { return wizard_; } | 283 SyncSetupWizard& get_wizard() { return wizard_; } |
| 284 | 284 |
| 285 // Shows the login screen of the Sync setup wizard. | |
| 286 virtual void ShowLoginDialog(); | |
| 287 | |
| 288 // This method handles clicks on "sync error" UI, showing the appropriate | 285 // This method handles clicks on "sync error" UI, showing the appropriate |
| 289 // dialog for the error condition (relogin / enter passphrase). | 286 // dialog for the error condition (relogin / enter passphrase). |
| 290 virtual void ShowErrorUI(); | 287 virtual void ShowErrorUI(); |
| 291 | 288 |
| 292 // Shows the configure screen of the Sync setup wizard. If |sync_everything| | 289 // Shows the configure screen of the Sync setup wizard. If |sync_everything| |
| 293 // is true, shows the corresponding page in the customize screen; otherwise, | 290 // is true, shows the corresponding page in the customize screen; otherwise, |
| 294 // displays the page that gives the user the ability to select which data | 291 // displays the page that gives the user the ability to select which data |
| 295 // types to sync. | 292 // types to sync. |
| 296 void ShowConfigure(bool sync_everything); | 293 void ShowConfigure(bool sync_everything); |
| 297 | 294 |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 browser_sync::DataTypeManager::ConfigureStatus configure_status_; | 739 browser_sync::DataTypeManager::ConfigureStatus configure_status_; |
| 743 | 740 |
| 744 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 741 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 745 }; | 742 }; |
| 746 | 743 |
| 747 bool ShouldShowActionOnUI( | 744 bool ShouldShowActionOnUI( |
| 748 const browser_sync::SyncProtocolError& error); | 745 const browser_sync::SyncProtocolError& error); |
| 749 | 746 |
| 750 | 747 |
| 751 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 748 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |