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