| OLD | NEW |
| 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 "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "components/keyed_service/core/keyed_service.h" | 9 #include "components/keyed_service/core/keyed_service.h" |
| 10 #include "components/signin/core/browser/webdata/token_web_data.h" | 10 #include "components/signin/core/browser/webdata/token_web_data.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 // Returns whether it is possible to revoke credentials. | 44 // Returns whether it is possible to revoke credentials. |
| 45 virtual bool CanRevokeCredentials() = 0; | 45 virtual bool CanRevokeCredentials() = 0; |
| 46 | 46 |
| 47 // Returns device id that is scoped to single signin. This device id will be | 47 // Returns device id that is scoped to single signin. This device id will be |
| 48 // regenerated if user signs out and signs back in. | 48 // regenerated if user signs out and signs back in. |
| 49 // When refresh token is requested for this user it will be annotated with | 49 // When refresh token is requested for this user it will be annotated with |
| 50 // this device id. | 50 // this device id. |
| 51 virtual std::string GetSigninScopedDeviceId() = 0; | 51 virtual std::string GetSigninScopedDeviceId() = 0; |
| 52 | 52 |
| 53 // Clears signin scoped device id. This happens when user signs out or about |
| 54 // to sign in. |
| 55 virtual void ClearSigninScopedDeviceId() = 0; |
| 56 |
| 53 // Returns the URL request context information associated with the client. | 57 // Returns the URL request context information associated with the client. |
| 54 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; | 58 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
| 55 | 59 |
| 56 // Returns whether the user's credentials should be merged into the cookie | 60 // Returns whether the user's credentials should be merged into the cookie |
| 57 // jar on signin completion. | 61 // jar on signin completion. |
| 58 virtual bool ShouldMergeSigninCredentialsIntoCookieJar() = 0; | 62 virtual bool ShouldMergeSigninCredentialsIntoCookieJar() = 0; |
| 59 | 63 |
| 60 // Returns a string containing the version info of the product in which the | 64 // Returns a string containing the version info of the product in which the |
| 61 // Signin component is being used. | 65 // Signin component is being used. |
| 62 virtual std::string GetProductVersion() = 0; | 66 virtual std::string GetProductVersion() = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 80 | 84 |
| 81 | 85 |
| 82 #if defined(OS_IOS) | 86 #if defined(OS_IOS) |
| 83 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from | 87 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from |
| 84 // the core SigninClient. | 88 // the core SigninClient. |
| 85 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; | 89 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; |
| 86 #endif | 90 #endif |
| 87 }; | 91 }; |
| 88 | 92 |
| 89 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ | 93 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ |
| OLD | NEW |