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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // Called after Google signin has succeeded. | 87 // Called after Google signin has succeeded. |
88 virtual void OnSignedIn(const std::string& account_id, | 88 virtual void OnSignedIn(const std::string& account_id, |
89 const std::string& username, | 89 const std::string& username, |
90 const std::string& password) {} | 90 const std::string& password) {} |
91 | 91 |
92 // Called after Google signin has succeeded and GetUserInfo has returned. | 92 // Called after Google signin has succeeded and GetUserInfo has returned. |
93 virtual void PostSignedIn(const std::string& account_id, | 93 virtual void PostSignedIn(const std::string& account_id, |
94 const std::string& username, | 94 const std::string& username, |
95 const std::string& password) {} | 95 const std::string& password) {} |
96 | 96 |
97 virtual void SetSigninProcess(int host_id) = 0; | |
98 virtual void ClearSigninProcess() = 0; | |
99 virtual bool IsSigninProcess(int host_id) const = 0; | |
100 virtual bool HasSigninProcess() const = 0; | |
101 | |
102 virtual bool IsFirstRun() const = 0; | 97 virtual bool IsFirstRun() const = 0; |
103 virtual base::Time GetInstallDate() = 0; | 98 virtual base::Time GetInstallDate() = 0; |
104 | 99 |
105 // Returns true if GAIA cookies are allowed in the content area. | 100 // Returns true if GAIA cookies are allowed in the content area. |
106 virtual bool AreSigninCookiesAllowed() = 0; | 101 virtual bool AreSigninCookiesAllowed() = 0; |
107 | 102 |
108 // Adds an observer to listen for changes to the state of sign in cookie | 103 // Adds an observer to listen for changes to the state of sign in cookie |
109 // settings. | 104 // settings. |
110 virtual void AddContentSettingsObserver( | 105 virtual void AddContentSettingsObserver( |
111 content_settings::Observer* observer) = 0; | 106 content_settings::Observer* observer) = 0; |
112 virtual void RemoveContentSettingsObserver( | 107 virtual void RemoveContentSettingsObserver( |
113 content_settings::Observer* observer) = 0; | 108 content_settings::Observer* observer) = 0; |
114 | 109 |
115 #if defined(OS_IOS) | 110 #if defined(OS_IOS) |
116 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from | 111 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from |
117 // the core SigninClient. | 112 // the core SigninClient. |
118 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; | 113 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; |
119 #endif | 114 #endif |
120 }; | 115 }; |
121 | 116 |
122 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ | 117 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ |
OLD | NEW |