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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 int load_flags, | 382 int load_flags, |
383 net::URLFetcherDelegate* delegate); | 383 net::URLFetcherDelegate* delegate); |
384 | 384 |
385 // From a URLFetcher result, generate an appropriate error. | 385 // From a URLFetcher result, generate an appropriate error. |
386 // From the API documentation, both IssueAuthToken and ClientLogin have | 386 // From the API documentation, both IssueAuthToken and ClientLogin have |
387 // the same error returns. | 387 // the same error returns. |
388 static GoogleServiceAuthError GenerateAuthError( | 388 static GoogleServiceAuthError GenerateAuthError( |
389 const std::string& data, | 389 const std::string& data, |
390 const net::URLRequestStatus& status); | 390 const net::URLRequestStatus& status); |
391 | 391 |
392 // These fields are common to GaiaAuthFetcher, same every request | 392 // These fields are common to GaiaAuthFetcher, same every request. |
393 GaiaAuthConsumer* const consumer_; | 393 GaiaAuthConsumer* const consumer_; |
394 net::URLRequestContextGetter* const getter_; | 394 net::URLRequestContextGetter* const getter_; |
395 std::string source_; | 395 std::string source_; |
396 const GURL client_login_gurl_; | 396 const GURL client_login_gurl_; |
397 const GURL issue_auth_token_gurl_; | 397 const GURL issue_auth_token_gurl_; |
398 const GURL oauth2_token_gurl_; | 398 const GURL oauth2_token_gurl_; |
399 const GURL oauth2_revoke_gurl_; | 399 const GURL oauth2_revoke_gurl_; |
400 const GURL get_user_info_gurl_; | 400 const GURL get_user_info_gurl_; |
401 const GURL merge_session_gurl_; | 401 const GURL merge_session_gurl_; |
402 const GURL uberauth_token_gurl_; | 402 const GURL uberauth_token_gurl_; |
(...skipping 23 matching lines...) Expand all 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 |