| 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 | 9 |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // Simulate a timeout for tests. | 121 // Simulate a timeout for tests. |
| 122 void TimeoutForTests(); | 122 void TimeoutForTests(); |
| 123 | 123 |
| 124 private: | 124 private: |
| 125 // Overridden from GaiaAuthConsumer. | 125 // Overridden from GaiaAuthConsumer. |
| 126 void OnGetCheckConnectionInfoSuccess(const std::string& data) override; | 126 void OnGetCheckConnectionInfoSuccess(const std::string& data) override; |
| 127 void OnGetCheckConnectionInfoError( | 127 void OnGetCheckConnectionInfoError( |
| 128 const GoogleServiceAuthError& error) override; | 128 const GoogleServiceAuthError& error) override; |
| 129 | 129 |
| 130 // Creates and initializes a URL fetcher for doing a connection check. | 130 // Creates and initializes a URL fetcher for doing a connection check. |
| 131 net::URLFetcher* CreateFetcher(const GURL& url); | 131 scoped_ptr<net::URLFetcher> CreateFetcher(const GURL& url); |
| 132 | 132 |
| 133 // Overridden from URLFetcherDelgate. | 133 // Overridden from URLFetcherDelgate. |
| 134 void OnURLFetchComplete(const net::URLFetcher* source) override; | 134 void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 135 | 135 |
| 136 // Any fetches still ongoing after this call are considered timed out. | 136 // Any fetches still ongoing after this call are considered timed out. |
| 137 void Timeout(); | 137 void Timeout(); |
| 138 | 138 |
| 139 void CleanupTransientState(); | 139 void CleanupTransientState(); |
| 140 | 140 |
| 141 void GetCheckConnectionInfoCompleted(bool succeeded); | 141 void GetCheckConnectionInfoCompleted(bool succeeded); |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 | 268 |
| 269 std::vector<std::pair<std::string, bool> > listed_accounts_; | 269 std::vector<std::pair<std::string, bool> > listed_accounts_; |
| 270 | 270 |
| 271 bool list_accounts_fetched_once_; | 271 bool list_accounts_fetched_once_; |
| 272 scoped_ptr<net::URLFetcher> logout_url_request_; | 272 scoped_ptr<net::URLFetcher> logout_url_request_; |
| 273 | 273 |
| 274 DISALLOW_COPY_AND_ASSIGN(GaiaCookieManagerService); | 274 DISALLOW_COPY_AND_ASSIGN(GaiaCookieManagerService); |
| 275 }; | 275 }; |
| 276 | 276 |
| 277 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H | 277 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_GAIA_COOKIE_MANAGER_SERVICE_H |
| OLD | NEW |