| 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 "base/callback_list.h" | 9 #include "base/callback_list.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // Returns whether it is possible to revoke credentials. | 49 // Returns whether it is possible to revoke credentials. |
| 50 virtual bool CanRevokeCredentials() = 0; | 50 virtual bool CanRevokeCredentials() = 0; |
| 51 | 51 |
| 52 // Returns device id that is scoped to single signin. This device id will be | 52 // Returns device id that is scoped to single signin. This device id will be |
| 53 // regenerated if user signs out and signs back in. | 53 // regenerated if user signs out and signs back in. |
| 54 // When refresh token is requested for this user it will be annotated with | 54 // When refresh token is requested for this user it will be annotated with |
| 55 // this device id. | 55 // this device id. |
| 56 virtual std::string GetSigninScopedDeviceId() = 0; | 56 virtual std::string GetSigninScopedDeviceId() = 0; |
| 57 | 57 |
| 58 // Clears signin scoped device id. This happens when user signs out or about | 58 // Clears all client preferences. This happens when user signs out or about to |
| 59 // to sign in. | 59 // sign in. |
| 60 virtual void ClearSigninScopedDeviceId() = 0; | 60 virtual void ClearSigninClientPrefs() = 0; |
| 61 | 61 |
| 62 // Returns the URL request context information associated with the client. | 62 // Returns the URL request context information associated with the client. |
| 63 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; | 63 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
| 64 | 64 |
| 65 // Returns whether the user's credentials should be merged into the cookie | 65 // Returns whether the user's credentials should be merged into the cookie |
| 66 // jar on signin completion. | 66 // jar on signin completion. |
| 67 virtual bool ShouldMergeSigninCredentialsIntoCookieJar() = 0; | 67 virtual bool ShouldMergeSigninCredentialsIntoCookieJar() = 0; |
| 68 | 68 |
| 69 // Returns a string containing the version info of the product in which the | 69 // Returns a string containing the version info of the product in which the |
| 70 // Signin component is being used. | 70 // Signin component is being used. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 91 virtual base::Time GetInstallDate() = 0; | 91 virtual base::Time GetInstallDate() = 0; |
| 92 | 92 |
| 93 #if defined(OS_IOS) | 93 #if defined(OS_IOS) |
| 94 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from | 94 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from |
| 95 // the core SigninClient. | 95 // the core SigninClient. |
| 96 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; | 96 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; |
| 97 #endif | 97 #endif |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ | 100 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ |
| OLD | NEW |