Chromium Code Reviews| 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 "components/keyed_service/core/keyed_service.h" | 11 #include "components/keyed_service/core/keyed_service.h" |
| 11 #include "components/signin/core/browser/webdata/token_web_data.h" | 12 #include "components/signin/core/browser/webdata/token_web_data.h" |
| 12 | 13 |
| 13 class PrefService; | 14 class PrefService; |
| 14 class SigninManagerBase; | 15 class SigninManagerBase; |
| 15 class TokenWebData; | 16 class TokenWebData; |
| 16 | 17 |
| 17 namespace net { | 18 namespace net { |
| 18 class CanonicalCookie; | 19 class CanonicalCookie; |
| 19 class URLRequestContextGetter; | 20 class URLRequestContextGetter; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 | 79 |
| 79 // Called when Google signin has succeeded. | 80 // Called when Google signin has succeeded. |
| 80 virtual void GoogleSigninSucceeded(const std::string& username, | 81 virtual void GoogleSigninSucceeded(const std::string& username, |
| 81 const std::string& password) {} | 82 const std::string& password) {} |
| 82 | 83 |
| 83 virtual void SetSigninProcess(int host_id) = 0; | 84 virtual void SetSigninProcess(int host_id) = 0; |
| 84 virtual void ClearSigninProcess() = 0; | 85 virtual void ClearSigninProcess() = 0; |
| 85 virtual bool IsSigninProcess(int host_id) const = 0; | 86 virtual bool IsSigninProcess(int host_id) const = 0; |
| 86 virtual bool HasSigninProcess() const = 0; | 87 virtual bool HasSigninProcess() const = 0; |
| 87 | 88 |
| 89 virtual bool IsFirstRun() const = 0; | |
| 90 virtual base::Time GetInstallDate() = 0; | |
| 91 | |
|
Alexei Svitkine (slow)
2014/08/12 19:45:16
Nit: Remove empty line.
Mike Lerman
2014/08/13 15:32:19
Done.
| |
| 88 | 92 |
| 89 #if defined(OS_IOS) | 93 #if defined(OS_IOS) |
| 90 // 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 |
| 91 // the core SigninClient. | 95 // the core SigninClient. |
| 92 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; | 96 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; |
| 93 #endif | 97 #endif |
| 94 }; | 98 }; |
| 95 | 99 |
| 96 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ | 100 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ |
| OLD | NEW |