| 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 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 // Called when a user chooses which data types to sync as part of the sync | 281 // Called when a user chooses which data types to sync as part of the sync |
| 282 // setup wizard. |sync_everything| represents whether they chose the | 282 // setup wizard. |sync_everything| represents whether they chose the |
| 283 // "keep everything synced" option; if true, |chosen_types| will be ignored | 283 // "keep everything synced" option; if true, |chosen_types| will be ignored |
| 284 // and all data types will be synced. |sync_everything| means "sync all | 284 // and all data types will be synced. |sync_everything| means "sync all |
| 285 // current and future data types." | 285 // current and future data types." |
| 286 virtual void OnUserChoseDatatypes(bool sync_everything, | 286 virtual void OnUserChoseDatatypes(bool sync_everything, |
| 287 syncer::ModelTypeSet chosen_types); | 287 syncer::ModelTypeSet chosen_types); |
| 288 | 288 |
| 289 // Get various information for displaying in the user interface. | 289 // Get various information for displaying in the user interface. |
| 290 std::string QuerySyncStatusSummary(); | 290 std::string QuerySyncStatusSummary(); |
| 291 virtual browser_sync::SyncBackendHost::Status QueryDetailedSyncStatus(); | 291 |
| 292 // Initializes a struct of status indicators with data from the backend. |
| 293 // Returns false if the backend was not available for querying; in that case |
| 294 // the struct will be filled with default data. |
| 295 virtual bool QueryDetailedSyncStatus( |
| 296 browser_sync::SyncBackendHost::Status* result); |
| 292 | 297 |
| 293 virtual const GoogleServiceAuthError& GetAuthError() const; | 298 virtual const GoogleServiceAuthError& GetAuthError() const; |
| 294 | 299 |
| 295 // Returns true if initial sync setup is in progress (does not return true | 300 // Returns true if initial sync setup is in progress (does not return true |
| 296 // if the user is customizing sync after already completing setup once). | 301 // if the user is customizing sync after already completing setup once). |
| 297 // ProfileSyncService uses this to determine if it's OK to start syncing, or | 302 // ProfileSyncService uses this to determine if it's OK to start syncing, or |
| 298 // if the user is still setting up the initial sync configuration. | 303 // if the user is still setting up the initial sync configuration. |
| 299 virtual bool FirstSetupInProgress() const; | 304 virtual bool FirstSetupInProgress() const; |
| 300 | 305 |
| 301 // Called by the UI to notify the ProfileSyncService that UI is visible so it | 306 // Called by the UI to notify the ProfileSyncService that UI is visible so it |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 syncer::Experiments current_experiments; | 798 syncer::Experiments current_experiments; |
| 794 | 799 |
| 795 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 800 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 796 }; | 801 }; |
| 797 | 802 |
| 798 bool ShouldShowActionOnUI( | 803 bool ShouldShowActionOnUI( |
| 799 const syncer::SyncProtocolError& error); | 804 const syncer::SyncProtocolError& error); |
| 800 | 805 |
| 801 | 806 |
| 802 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 807 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |