Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 8665011: sync: remove GetAuthenticatedUsername from ProfileSyncService/SyncBackendHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review2 Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // we have an encrypted data type enabled. 308 // we have an encrypted data type enabled.
309 virtual bool IsPassphraseRequiredForDecryption() const; 309 virtual bool IsPassphraseRequiredForDecryption() const;
310 310
311 sync_api::PassphraseRequiredReason passphrase_required_reason() const { 311 sync_api::PassphraseRequiredReason passphrase_required_reason() const {
312 return passphrase_required_reason_; 312 return passphrase_required_reason_;
313 } 313 }
314 314
315 // Returns a user-friendly string form of last synced time (in minutes). 315 // Returns a user-friendly string form of last synced time (in minutes).
316 virtual string16 GetLastSyncedTimeString() const; 316 virtual string16 GetLastSyncedTimeString() const;
317 317
318 // Returns the authenticated username of the sync user, or empty if none
319 // exists. It will only exist if the authentication service provider (e.g
320 // GAIA) has confirmed the username is authentic.
321 virtual string16 GetAuthenticatedUsername() const;
322
323 const std::string& last_attempted_user_email() const { 318 const std::string& last_attempted_user_email() const {
324 return last_attempted_user_email_; 319 return last_attempted_user_email_;
325 } 320 }
326 321
327 // The profile we are syncing for. 322 // The profile we are syncing for.
328 Profile* profile() const { return profile_; } 323 Profile* profile() const { return profile_; }
329 324
330 // Adds/removes an observer. ProfileSyncService does not take ownership of 325 // Adds/removes an observer. ProfileSyncService does not take ownership of
331 // the observer. 326 // the observer.
332 virtual void AddObserver(Observer* observer); 327 virtual void AddObserver(Observer* observer);
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 FailedDatatypesHandler failed_datatypes_handler_; 704 FailedDatatypesHandler failed_datatypes_handler_;
710 705
711 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 706 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
712 }; 707 };
713 708
714 bool ShouldShowActionOnUI( 709 bool ShouldShowActionOnUI(
715 const browser_sync::SyncProtocolError& error); 710 const browser_sync::SyncProtocolError& error);
716 711
717 712
718 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 713 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/internal_api/sync_manager.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698