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

Side by Side Diff: components/signin/core/browser/signin_client.h

Issue 205703005: Componentize SigninIdAccountHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to review Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/pref_names.cc ('k') | components/signin/core/common/signin_pref_names.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_
7 7
8 #include "components/signin/core/browser/webdata/token_web_data.h" 8 #include "components/signin/core/browser/webdata/token_web_data.h"
9 9
10 class PrefService; 10 class PrefService;
11 class SigninManagerBase;
11 class TokenWebData; 12 class TokenWebData;
12 13
13 namespace net { 14 namespace net {
14 class URLRequestContextGetter; 15 class URLRequestContextGetter;
15 } 16 }
16 17
17 // An interface that needs to be supplied to the Signin component by its 18 // An interface that needs to be supplied to the Signin component by its
18 // embedder. 19 // embedder.
19 class SigninClient { 20 class SigninClient {
20 public: 21 public:
21 virtual ~SigninClient() {} 22 virtual ~SigninClient() {}
22 23
23 // Gets the preferences associated with the client. 24 // Gets the preferences associated with the client.
24 virtual PrefService* GetPrefs() = 0; 25 virtual PrefService* GetPrefs() = 0;
25 26
26 // Gets the TokenWebData instance associated with the client. 27 // Gets the TokenWebData instance associated with the client.
27 virtual scoped_refptr<TokenWebData> GetDatabase() = 0; 28 virtual scoped_refptr<TokenWebData> GetDatabase() = 0;
28 29
29 // Returns whether it is possible to revoke credentials. 30 // Returns whether it is possible to revoke credentials.
30 virtual bool CanRevokeCredentials() = 0; 31 virtual bool CanRevokeCredentials() = 0;
31 32
32 // Returns the URL request context information associated with the client. 33 // Returns the URL request context information associated with the client.
33 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; 34 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0;
35
36 // Called when Google signin has succeeded.
37 virtual void GoogleSigninSucceeded(const std::string& username,
38 const std::string& password) {}
34 }; 39 };
35 40
36 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ 41 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | components/signin/core/common/signin_pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698