| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 // we have an encrypted data type enabled. | 312 // we have an encrypted data type enabled. |
| 313 virtual bool IsPassphraseRequiredForDecryption() const; | 313 virtual bool IsPassphraseRequiredForDecryption() const; |
| 314 | 314 |
| 315 sync_api::PassphraseRequiredReason passphrase_required_reason() const { | 315 sync_api::PassphraseRequiredReason passphrase_required_reason() const { |
| 316 return passphrase_required_reason_; | 316 return passphrase_required_reason_; |
| 317 } | 317 } |
| 318 | 318 |
| 319 // Returns a user-friendly string form of last synced time (in minutes). | 319 // Returns a user-friendly string form of last synced time (in minutes). |
| 320 virtual string16 GetLastSyncedTimeString() const; | 320 virtual string16 GetLastSyncedTimeString() const; |
| 321 | 321 |
| 322 // Returns the authenticated username of the sync user, or empty if none | |
| 323 // exists. It will only exist if the authentication service provider (e.g | |
| 324 // GAIA) has confirmed the username is authentic. | |
| 325 virtual string16 GetAuthenticatedUsername() const; | |
| 326 | |
| 327 const std::string& last_attempted_user_email() const { | 322 const std::string& last_attempted_user_email() const { |
| 328 return last_attempted_user_email_; | 323 return last_attempted_user_email_; |
| 329 } | 324 } |
| 330 | 325 |
| 331 // The profile we are syncing for. | 326 // The profile we are syncing for. |
| 332 Profile* profile() const { return profile_; } | 327 Profile* profile() const { return profile_; } |
| 333 | 328 |
| 334 // Adds/removes an observer. ProfileSyncService does not take ownership of | 329 // Adds/removes an observer. ProfileSyncService does not take ownership of |
| 335 // the observer. | 330 // the observer. |
| 336 virtual void AddObserver(Observer* observer); | 331 virtual void AddObserver(Observer* observer); |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 FailedDatatypesHandler failed_datatypes_handler_; | 708 FailedDatatypesHandler failed_datatypes_handler_; |
| 714 | 709 |
| 715 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 710 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 716 }; | 711 }; |
| 717 | 712 |
| 718 bool ShouldShowActionOnUI( | 713 bool ShouldShowActionOnUI( |
| 719 const browser_sync::SyncProtocolError& error); | 714 const browser_sync::SyncProtocolError& error); |
| 720 | 715 |
| 721 | 716 |
| 722 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 717 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |