| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 GOOGLE_APIS_GAIA_GAIA_AUTH_FETCHER_H_ | 5 #ifndef GOOGLE_APIS_GAIA_GAIA_AUTH_FETCHER_H_ |
| 6 #define GOOGLE_APIS_GAIA_GAIA_AUTH_FETCHER_H_ | 6 #define GOOGLE_APIS_GAIA_GAIA_AUTH_FETCHER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 // Starts a request to list the accounts in the GAIA cookie. | 182 // Starts a request to list the accounts in the GAIA cookie. |
| 183 void StartListAccounts(); | 183 void StartListAccounts(); |
| 184 | 184 |
| 185 // Starts a request to get the list of URLs to check for connection info. | 185 // Starts a request to get the list of URLs to check for connection info. |
| 186 // Returns token/URL pairs to check, and the resulting status can be given to | 186 // Returns token/URL pairs to check, and the resulting status can be given to |
| 187 // /MergeSession requests. | 187 // /MergeSession requests. |
| 188 void StartGetCheckConnectionInfo(); | 188 void StartGetCheckConnectionInfo(); |
| 189 | 189 |
| 190 // Implementation of net::URLFetcherDelegate | 190 // Implementation of net::URLFetcherDelegate |
| 191 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; | 191 virtual void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 192 | 192 |
| 193 // StartClientLogin been called && results not back yet? | 193 // StartClientLogin been called && results not back yet? |
| 194 bool HasPendingFetch(); | 194 bool HasPendingFetch(); |
| 195 | 195 |
| 196 // Stop any URL fetches in progress. | 196 // Stop any URL fetches in progress. |
| 197 void CancelRequest(); | 197 void CancelRequest(); |
| 198 | 198 |
| 199 // From a URLFetcher result, generate an appropriate error. | 199 // From a URLFetcher result, generate an appropriate error. |
| 200 // From the API documentation, both IssueAuthToken and ClientLogin have | 200 // From the API documentation, both IssueAuthToken and ClientLogin have |
| 201 // the same error returns. | 201 // the same error returns. |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, ParseOAuth2TokenPairResponse); | 426 FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, ParseOAuth2TokenPairResponse); |
| 427 FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, ClientOAuthSuccess); | 427 FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, ClientOAuthSuccess); |
| 428 FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, ClientOAuthWithQuote); | 428 FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, ClientOAuthWithQuote); |
| 429 FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, ClientOAuthChallengeSuccess); | 429 FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, ClientOAuthChallengeSuccess); |
| 430 FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, ClientOAuthChallengeQuote); | 430 FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, ClientOAuthChallengeQuote); |
| 431 | 431 |
| 432 DISALLOW_COPY_AND_ASSIGN(GaiaAuthFetcher); | 432 DISALLOW_COPY_AND_ASSIGN(GaiaAuthFetcher); |
| 433 }; | 433 }; |
| 434 | 434 |
| 435 #endif // GOOGLE_APIS_GAIA_GAIA_AUTH_FETCHER_H_ | 435 #endif // GOOGLE_APIS_GAIA_GAIA_AUTH_FETCHER_H_ |
| OLD | NEW |