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_GAIA_COOKIE_MANAGER_SERVICE_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H_ |
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 } | 235 } |
236 | 236 |
237 // Returns the source value to use for GaiaFetcher requests. This is | 237 // Returns the source value to use for GaiaFetcher requests. This is |
238 // virtual to allow tests and fake classes to override. | 238 // virtual to allow tests and fake classes to override. |
239 virtual std::string GetSourceForRequest( | 239 virtual std::string GetSourceForRequest( |
240 const GaiaCookieManagerService::GaiaCookieRequest& request, | 240 const GaiaCookieManagerService::GaiaCookieRequest& request, |
241 const std::string& source_default); | 241 const std::string& source_default); |
242 | 242 |
243 // Called when a cookie changes. If the cookie relates to a GAIA APISID | 243 // Called when a cookie changes. If the cookie relates to a GAIA APISID |
244 // cookie, then we call ListAccounts and fire OnGaiaAccountsInCookieUpdated. | 244 // cookie, then we call ListAccounts and fire OnGaiaAccountsInCookieUpdated. |
245 void OnCookieChanged(const net::CanonicalCookie& cookie, bool removed); | 245 void OnCookieChanged(const net::CanonicalCookie& cookie, |
| 246 net::CookieStore::ChangeCause cause); |
246 | 247 |
247 // Overridden from UbertokenConsumer. | 248 // Overridden from UbertokenConsumer. |
248 void OnUbertokenSuccess(const std::string& token) override; | 249 void OnUbertokenSuccess(const std::string& token) override; |
249 void OnUbertokenFailure(const GoogleServiceAuthError& error) override; | 250 void OnUbertokenFailure(const GoogleServiceAuthError& error) override; |
250 | 251 |
251 // Overridden from GaiaAuthConsumer. | 252 // Overridden from GaiaAuthConsumer. |
252 void OnMergeSessionSuccess(const std::string& data) override; | 253 void OnMergeSessionSuccess(const std::string& data) override; |
253 void OnMergeSessionFailure(const GoogleServiceAuthError& error) override; | 254 void OnMergeSessionFailure(const GoogleServiceAuthError& error) override; |
254 void OnListAccountsSuccess(const std::string& data) override; | 255 void OnListAccountsSuccess(const std::string& data) override; |
255 void OnListAccountsFailure(const GoogleServiceAuthError& error) override; | 256 void OnListAccountsFailure(const GoogleServiceAuthError& error) override; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 | 316 |
316 std::vector<gaia::ListedAccount> listed_accounts_; | 317 std::vector<gaia::ListedAccount> listed_accounts_; |
317 std::vector<gaia::ListedAccount> signed_out_accounts_; | 318 std::vector<gaia::ListedAccount> signed_out_accounts_; |
318 | 319 |
319 bool list_accounts_stale_; | 320 bool list_accounts_stale_; |
320 | 321 |
321 DISALLOW_COPY_AND_ASSIGN(GaiaCookieManagerService); | 322 DISALLOW_COPY_AND_ASSIGN(GaiaCookieManagerService); |
322 }; | 323 }; |
323 | 324 |
324 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H_ | 325 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H_ |
OLD | NEW |