| 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 20 matching lines...) Expand all Loading... |
| 31 // An interface that needs to be supplied to the Signin component by its | 31 // An interface that needs to be supplied to the Signin component by its |
| 32 // embedder. | 32 // embedder. |
| 33 class SigninClient : public KeyedService { | 33 class SigninClient : public KeyedService { |
| 34 public: | 34 public: |
| 35 typedef base::Callback<void(const net::CanonicalCookie* cookie)> | 35 typedef base::Callback<void(const net::CanonicalCookie* cookie)> |
| 36 CookieChangedCallback; | 36 CookieChangedCallback; |
| 37 | 37 |
| 38 typedef base::CallbackList<void(const net::CanonicalCookie* cookie)> | 38 typedef base::CallbackList<void(const net::CanonicalCookie* cookie)> |
| 39 CookieChangedCallbackList; | 39 CookieChangedCallbackList; |
| 40 | 40 |
| 41 virtual ~SigninClient() {} | 41 ~SigninClient() override {} |
| 42 | 42 |
| 43 // Gets the preferences associated with the client. | 43 // Gets the preferences associated with the client. |
| 44 virtual PrefService* GetPrefs() = 0; | 44 virtual PrefService* GetPrefs() = 0; |
| 45 | 45 |
| 46 // Gets the TokenWebData instance associated with the client. | 46 // Gets the TokenWebData instance associated with the client. |
| 47 virtual scoped_refptr<TokenWebData> GetDatabase() = 0; | 47 virtual scoped_refptr<TokenWebData> GetDatabase() = 0; |
| 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 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |