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

Side by Side Diff: chrome/browser/signin/profile_identity_provider.h

Issue 502343002: Add account_id to signin manager notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@isauth
Patch Set: Fix android trybots Created 6 years, 3 months 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SIGNIN_PROFILE_IDENTITY_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_PROFILE_IDENTITY_PROVIDER_H_
6 #define CHROME_BROWSER_SIGNIN_PROFILE_IDENTITY_PROVIDER_H_ 6 #define CHROME_BROWSER_SIGNIN_PROFILE_IDENTITY_PROVIDER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/signin/core/browser/signin_manager_base.h" 9 #include "components/signin/core/browser/signin_manager_base.h"
10 #include "google_apis/gaia/identity_provider.h" 10 #include "google_apis/gaia/identity_provider.h"
(...skipping 11 matching lines...) Expand all
22 LoginUIService* login_ui_service); 22 LoginUIService* login_ui_service);
23 virtual ~ProfileIdentityProvider(); 23 virtual ~ProfileIdentityProvider();
24 24
25 // IdentityProvider: 25 // IdentityProvider:
26 virtual std::string GetActiveUsername() OVERRIDE; 26 virtual std::string GetActiveUsername() OVERRIDE;
27 virtual std::string GetActiveAccountId() OVERRIDE; 27 virtual std::string GetActiveAccountId() OVERRIDE;
28 virtual OAuth2TokenService* GetTokenService() OVERRIDE; 28 virtual OAuth2TokenService* GetTokenService() OVERRIDE;
29 virtual bool RequestLogin() OVERRIDE; 29 virtual bool RequestLogin() OVERRIDE;
30 30
31 // SigninManagerBase::Observer: 31 // SigninManagerBase::Observer:
32 virtual void GoogleSigninSucceeded(const std::string& username, 32 virtual void GoogleSigninSucceeded(const std::string& account_id,
33 const std::string& username,
33 const std::string& password) OVERRIDE; 34 const std::string& password) OVERRIDE;
34 virtual void GoogleSignedOut(const std::string& username) OVERRIDE; 35 virtual void GoogleSignedOut(const std::string& account_id,
36 const std::string& username) OVERRIDE;
35 37
36 private: 38 private:
37 SigninManagerBase* const signin_manager_; 39 SigninManagerBase* const signin_manager_;
38 ProfileOAuth2TokenService* const token_service_; 40 ProfileOAuth2TokenService* const token_service_;
39 LoginUIService* const login_ui_service_; 41 LoginUIService* const login_ui_service_;
40 42
41 DISALLOW_COPY_AND_ASSIGN(ProfileIdentityProvider); 43 DISALLOW_COPY_AND_ASSIGN(ProfileIdentityProvider);
42 }; 44 };
43 45
44 #endif // CHROME_BROWSER_SIGNIN_PROFILE_IDENTITY_PROVIDER_H_ 46 #endif // CHROME_BROWSER_SIGNIN_PROFILE_IDENTITY_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/fake_signin_manager.cc ('k') | chrome/browser/signin/profile_identity_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698