Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: google_apis/gaia/gaia_auth_fetcher.h

Issue 601643002: Use a distinct source parameter on gaia endpoints for the reconcilor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@uber
Patch Set: Remove functions Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « google_apis/gaia/fake_gaia.cc ('k') | google_apis/gaia/gaia_auth_fetcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « google_apis/gaia/fake_gaia.cc ('k') | google_apis/gaia/gaia_auth_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698