| 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 // Called when a user chooses which data types to sync as part of the sync | 283 // Called when a user chooses which data types to sync as part of the sync |
| 284 // setup wizard. |sync_everything| represents whether they chose the | 284 // setup wizard. |sync_everything| represents whether they chose the |
| 285 // "keep everything synced" option; if true, |chosen_types| will be ignored | 285 // "keep everything synced" option; if true, |chosen_types| will be ignored |
| 286 // and all data types will be synced. |sync_everything| means "sync all | 286 // and all data types will be synced. |sync_everything| means "sync all |
| 287 // current and future data types." | 287 // current and future data types." |
| 288 virtual void OnUserChoseDatatypes(bool sync_everything, | 288 virtual void OnUserChoseDatatypes(bool sync_everything, |
| 289 syncer::ModelTypeSet chosen_types); | 289 syncer::ModelTypeSet chosen_types); |
| 290 | 290 |
| 291 // Get various information for displaying in the user interface. | 291 // Get various information for displaying in the user interface. |
| 292 std::string QuerySyncStatusSummary(); | 292 std::string QuerySyncStatusSummary(); |
| 293 virtual browser_sync::SyncBackendHost::Status QueryDetailedSyncStatus(); | 293 |
| 294 // Initializes a struct of status indicators with data from the backend. |
| 295 // Returns false if the backend was not available for querying; in that case |
| 296 // the struct will be filled with default data. |
| 297 virtual bool QueryDetailedSyncStatus( |
| 298 browser_sync::SyncBackendHost::Status* result); |
| 294 | 299 |
| 295 virtual const GoogleServiceAuthError& GetAuthError() const; | 300 virtual const GoogleServiceAuthError& GetAuthError() const; |
| 296 | 301 |
| 297 // Returns true if initial sync setup is in progress (does not return true | 302 // Returns true if initial sync setup is in progress (does not return true |
| 298 // if the user is customizing sync after already completing setup once). | 303 // if the user is customizing sync after already completing setup once). |
| 299 // ProfileSyncService uses this to determine if it's OK to start syncing, or | 304 // ProfileSyncService uses this to determine if it's OK to start syncing, or |
| 300 // if the user is still setting up the initial sync configuration. | 305 // if the user is still setting up the initial sync configuration. |
| 301 virtual bool FirstSetupInProgress() const; | 306 virtual bool FirstSetupInProgress() const; |
| 302 | 307 |
| 303 // Called by the UI to notify the ProfileSyncService that UI is visible so it | 308 // Called by the UI to notify the ProfileSyncService that UI is visible so it |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 syncer::SyncManagerFactory sync_manager_factory_; | 817 syncer::SyncManagerFactory sync_manager_factory_; |
| 813 | 818 |
| 814 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 819 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 815 }; | 820 }; |
| 816 | 821 |
| 817 bool ShouldShowActionOnUI( | 822 bool ShouldShowActionOnUI( |
| 818 const syncer::SyncProtocolError& error); | 823 const syncer::SyncProtocolError& error); |
| 819 | 824 |
| 820 | 825 |
| 821 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 826 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |