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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 virtual void OnConfigureDone( | 446 virtual void OnConfigureDone( |
447 const sync_driver::DataTypeManager::ConfigureResult& result) OVERRIDE; | 447 const sync_driver::DataTypeManager::ConfigureResult& result) OVERRIDE; |
448 virtual void OnConfigureRetry() OVERRIDE; | 448 virtual void OnConfigureRetry() OVERRIDE; |
449 virtual void OnConfigureStart() OVERRIDE; | 449 virtual void OnConfigureStart() OVERRIDE; |
450 | 450 |
451 // DataTypeEncryptionHandler implementation. | 451 // DataTypeEncryptionHandler implementation. |
452 virtual bool IsPassphraseRequired() const OVERRIDE; | 452 virtual bool IsPassphraseRequired() const OVERRIDE; |
453 virtual syncer::ModelTypeSet GetEncryptedDataTypes() const OVERRIDE; | 453 virtual syncer::ModelTypeSet GetEncryptedDataTypes() const OVERRIDE; |
454 | 454 |
455 // SigninManagerBase::Observer implementation. | 455 // SigninManagerBase::Observer implementation. |
456 virtual void GoogleSigninSucceeded(const std::string& username, | 456 virtual void GoogleSigninSucceeded(const std::string& account_id, |
| 457 const std::string& username, |
457 const std::string& password) OVERRIDE; | 458 const std::string& password) OVERRIDE; |
458 virtual void GoogleSignedOut(const std::string& username) OVERRIDE; | 459 virtual void GoogleSignedOut(const std::string& account_id, |
| 460 const std::string& username) OVERRIDE; |
459 | 461 |
460 // Called when a user chooses which data types to sync as part of the sync | 462 // Called when a user chooses which data types to sync as part of the sync |
461 // setup wizard. |sync_everything| represents whether they chose the | 463 // setup wizard. |sync_everything| represents whether they chose the |
462 // "keep everything synced" option; if true, |chosen_types| will be ignored | 464 // "keep everything synced" option; if true, |chosen_types| will be ignored |
463 // and all data types will be synced. |sync_everything| means "sync all | 465 // and all data types will be synced. |sync_everything| means "sync all |
464 // current and future data types." | 466 // current and future data types." |
465 virtual void OnUserChoseDatatypes(bool sync_everything, | 467 virtual void OnUserChoseDatatypes(bool sync_everything, |
466 syncer::ModelTypeSet chosen_types); | 468 syncer::ModelTypeSet chosen_types); |
467 | 469 |
468 // Get the sync status code. | 470 // Get the sync status code. |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 BrowsingDataRemover::Observer* browsing_data_remover_observer_; | 1171 BrowsingDataRemover::Observer* browsing_data_remover_observer_; |
1170 | 1172 |
1171 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1173 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
1172 }; | 1174 }; |
1173 | 1175 |
1174 bool ShouldShowActionOnUI( | 1176 bool ShouldShowActionOnUI( |
1175 const syncer::SyncProtocolError& error); | 1177 const syncer::SyncProtocolError& error); |
1176 | 1178 |
1177 | 1179 |
1178 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1180 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |