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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // changes. | 80 // changes. |
81 // Note that |callback| will always be called on the thread that | 81 // Note that |callback| will always be called on the thread that |
82 // |AddCookieChangedCallback| was called on. | 82 // |AddCookieChangedCallback| was called on. |
83 virtual scoped_ptr<CookieChangedSubscription> AddCookieChangedCallback( | 83 virtual scoped_ptr<CookieChangedSubscription> AddCookieChangedCallback( |
84 const GURL& url, | 84 const GURL& url, |
85 const std::string& name, | 85 const std::string& name, |
86 const net::CookieStore::CookieChangedCallback& callback) = 0; | 86 const net::CookieStore::CookieChangedCallback& callback) = 0; |
87 | 87 |
88 // Called after Google signin has succeeded. | 88 // Called after Google signin has succeeded. |
89 virtual void OnSignedIn(const std::string& account_id, | 89 virtual void OnSignedIn(const std::string& account_id, |
| 90 const std::string& gaia_id, |
90 const std::string& username, | 91 const std::string& username, |
91 const std::string& password) {} | 92 const std::string& password) {} |
92 | 93 |
93 // Called after Google signin has succeeded and GetUserInfo has returned. | 94 // Called after Google signin has succeeded and GetUserInfo has returned. |
94 virtual void PostSignedIn(const std::string& account_id, | 95 virtual void PostSignedIn(const std::string& account_id, |
95 const std::string& username, | 96 const std::string& username, |
96 const std::string& password) {} | 97 const std::string& password) {} |
97 | 98 |
98 virtual bool IsFirstRun() const = 0; | 99 virtual bool IsFirstRun() const = 0; |
99 virtual base::Time GetInstallDate() = 0; | 100 virtual base::Time GetInstallDate() = 0; |
(...skipping 22 matching lines...) Expand all Loading... |
122 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from | 123 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from |
123 // the core SigninClient. | 124 // the core SigninClient. |
124 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; | 125 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; |
125 #endif | 126 #endif |
126 | 127 |
127 // Execute |callback| if and when there is a network connection. | 128 // Execute |callback| if and when there is a network connection. |
128 virtual void DelayNetworkCall(const base::Closure& callback) = 0; | 129 virtual void DelayNetworkCall(const base::Closure& callback) = 0; |
129 }; | 130 }; |
130 | 131 |
131 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ | 132 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ |
OLD | NEW |