| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual std::string GetProductVersion() = 0; | 71 virtual std::string GetProductVersion() = 0; |
| 72 | 72 |
| 73 // Adds or removes a callback that should be called when a cookie changes. | 73 // Adds or removes a callback that should be called when a cookie changes. |
| 74 // TODO(blundell): Eliminate this interface in favor of having core signin | 74 // TODO(blundell): Eliminate this interface in favor of having core signin |
| 75 // code observe cookie changes once //chrome/browser/net has been | 75 // code observe cookie changes once //chrome/browser/net has been |
| 76 // componentized. | 76 // componentized. |
| 77 virtual scoped_ptr<CookieChangedCallbackList::Subscription> | 77 virtual scoped_ptr<CookieChangedCallbackList::Subscription> |
| 78 AddCookieChangedCallback(const CookieChangedCallback& callback) = 0; | 78 AddCookieChangedCallback(const CookieChangedCallback& callback) = 0; |
| 79 | 79 |
| 80 // Called when Google signin has succeeded. | 80 // Called when Google signin has succeeded. |
| 81 virtual void GoogleSigninSucceeded(const std::string& username, | 81 virtual void GoogleSigninSucceeded(const std::string& account_id, |
| 82 const std::string& username, |
| 82 const std::string& password) {} | 83 const std::string& password) {} |
| 83 | 84 |
| 84 virtual void SetSigninProcess(int host_id) = 0; | 85 virtual void SetSigninProcess(int host_id) = 0; |
| 85 virtual void ClearSigninProcess() = 0; | 86 virtual void ClearSigninProcess() = 0; |
| 86 virtual bool IsSigninProcess(int host_id) const = 0; | 87 virtual bool IsSigninProcess(int host_id) const = 0; |
| 87 virtual bool HasSigninProcess() const = 0; | 88 virtual bool HasSigninProcess() const = 0; |
| 88 | 89 |
| 89 virtual bool IsFirstRun() const = 0; | 90 virtual bool IsFirstRun() const = 0; |
| 90 virtual base::Time GetInstallDate() = 0; | 91 virtual base::Time GetInstallDate() = 0; |
| 91 | 92 |
| 92 #if defined(OS_IOS) | 93 #if defined(OS_IOS) |
| 93 // 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 |
| 94 // the core SigninClient. | 95 // the core SigninClient. |
| 95 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; | 96 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; |
| 96 #endif | 97 #endif |
| 97 }; | 98 }; |
| 98 | 99 |
| 99 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ | 100 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ |
| OLD | NEW |