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; |
88 | 91 |
89 #if defined(OS_IOS) | 92 #if defined(OS_IOS) |
90 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from | 93 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from |
91 // the core SigninClient. | 94 // the core SigninClient. |
92 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; | 95 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; |
93 #endif | 96 #endif |
94 }; | 97 }; |
95 | 98 |
96 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ | 99 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ |
OLD | NEW |