| 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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 virtual void OnProtocolEvent(const syncer::ProtocolEvent& event) OVERRIDE; | 404 virtual void OnProtocolEvent(const syncer::ProtocolEvent& event) OVERRIDE; |
| 405 virtual void OnDirectoryTypeCommitCounterUpdated( | 405 virtual void OnDirectoryTypeCommitCounterUpdated( |
| 406 syncer::ModelType type, | 406 syncer::ModelType type, |
| 407 const syncer::CommitCounters& counters) OVERRIDE; | 407 const syncer::CommitCounters& counters) OVERRIDE; |
| 408 virtual void OnDirectoryTypeUpdateCounterUpdated( | 408 virtual void OnDirectoryTypeUpdateCounterUpdated( |
| 409 syncer::ModelType type, | 409 syncer::ModelType type, |
| 410 const syncer::UpdateCounters& counters) OVERRIDE; | 410 const syncer::UpdateCounters& counters) OVERRIDE; |
| 411 virtual void OnDirectoryTypeStatusCounterUpdated( | 411 virtual void OnDirectoryTypeStatusCounterUpdated( |
| 412 syncer::ModelType type, | 412 syncer::ModelType type, |
| 413 const syncer::StatusCounters& counters) OVERRIDE; | 413 const syncer::StatusCounters& counters) OVERRIDE; |
| 414 virtual void OnSyncConfigureRetry() OVERRIDE; | |
| 415 virtual void OnConnectionStatusChange( | 414 virtual void OnConnectionStatusChange( |
| 416 syncer::ConnectionStatus status) OVERRIDE; | 415 syncer::ConnectionStatus status) OVERRIDE; |
| 417 virtual void OnPassphraseRequired( | 416 virtual void OnPassphraseRequired( |
| 418 syncer::PassphraseRequiredReason reason, | 417 syncer::PassphraseRequiredReason reason, |
| 419 const sync_pb::EncryptedData& pending_keys) OVERRIDE; | 418 const sync_pb::EncryptedData& pending_keys) OVERRIDE; |
| 420 virtual void OnPassphraseAccepted() OVERRIDE; | 419 virtual void OnPassphraseAccepted() OVERRIDE; |
| 421 virtual void OnEncryptedTypesChanged( | 420 virtual void OnEncryptedTypesChanged( |
| 422 syncer::ModelTypeSet encrypted_types, | 421 syncer::ModelTypeSet encrypted_types, |
| 423 bool encrypt_everything) OVERRIDE; | 422 bool encrypt_everything) OVERRIDE; |
| 424 virtual void OnEncryptionComplete() OVERRIDE; | 423 virtual void OnEncryptionComplete() OVERRIDE; |
| 425 virtual void OnMigrationNeededForTypes( | 424 virtual void OnMigrationNeededForTypes( |
| 426 syncer::ModelTypeSet types) OVERRIDE; | 425 syncer::ModelTypeSet types) OVERRIDE; |
| 427 virtual void OnExperimentsChanged( | 426 virtual void OnExperimentsChanged( |
| 428 const syncer::Experiments& experiments) OVERRIDE; | 427 const syncer::Experiments& experiments) OVERRIDE; |
| 429 virtual void OnActionableError( | 428 virtual void OnActionableError( |
| 430 const syncer::SyncProtocolError& error) OVERRIDE; | 429 const syncer::SyncProtocolError& error) OVERRIDE; |
| 431 | 430 |
| 432 // DataTypeManagerObserver implementation. | 431 // DataTypeManagerObserver implementation. |
| 433 virtual void OnConfigureDone( | 432 virtual void OnConfigureDone( |
| 434 const sync_driver::DataTypeManager::ConfigureResult& result) OVERRIDE; | 433 const sync_driver::DataTypeManager::ConfigureResult& result) OVERRIDE; |
| 435 virtual void OnConfigureRetry() OVERRIDE; | |
| 436 virtual void OnConfigureStart() OVERRIDE; | 434 virtual void OnConfigureStart() OVERRIDE; |
| 437 | 435 |
| 438 // DataTypeEncryptionHandler implementation. | 436 // DataTypeEncryptionHandler implementation. |
| 439 virtual bool IsPassphraseRequired() const OVERRIDE; | 437 virtual bool IsPassphraseRequired() const OVERRIDE; |
| 440 virtual syncer::ModelTypeSet GetEncryptedDataTypes() const OVERRIDE; | 438 virtual syncer::ModelTypeSet GetEncryptedDataTypes() const OVERRIDE; |
| 441 | 439 |
| 442 // SigninManagerBase::Observer implementation. | 440 // SigninManagerBase::Observer implementation. |
| 443 virtual void GoogleSigninSucceeded(const std::string& account_id, | 441 virtual void GoogleSigninSucceeded(const std::string& account_id, |
| 444 const std::string& username, | 442 const std::string& username, |
| 445 const std::string& password) OVERRIDE; | 443 const std::string& password) OVERRIDE; |
| (...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1159 BrowsingDataRemover::Observer* browsing_data_remover_observer_; | 1157 BrowsingDataRemover::Observer* browsing_data_remover_observer_; |
| 1160 | 1158 |
| 1161 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1159 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 1162 }; | 1160 }; |
| 1163 | 1161 |
| 1164 bool ShouldShowActionOnUI( | 1162 bool ShouldShowActionOnUI( |
| 1165 const syncer::SyncProtocolError& error); | 1163 const syncer::SyncProtocolError& error); |
| 1166 | 1164 |
| 1167 | 1165 |
| 1168 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1166 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |