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

Side by Side Diff: chrome/browser/net/gaia/gaia_oauth_fetcher.cc

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 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 | Annotate | Revision Log
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 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h" 5 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/json/json_reader.h" 11 #include "base/json/json_reader.h"
12 #include "base/string_split.h" 12 #include "base/string_split.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h" 15 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h"
16 #include "chrome/common/net/gaia/gaia_auth_fetcher.h"
17 #include "chrome/common/net/gaia/gaia_constants.h"
18 #include "chrome/common/net/gaia/gaia_urls.h"
19 #include "chrome/common/net/gaia/oauth_request_signer.h"
20 #include "chrome/common/net/url_util.h" 16 #include "chrome/common/net/url_util.h"
17 #include "google_apis/gaia/gaia_auth_fetcher.h"
18 #include "google_apis/gaia/gaia_constants.h"
19 #include "google_apis/gaia/gaia_urls.h"
20 #include "google_apis/gaia/oauth_request_signer.h"
21 #include "grit/chromium_strings.h" 21 #include "grit/chromium_strings.h"
22 #include "net/base/load_flags.h" 22 #include "net/base/load_flags.h"
23 #include "net/cookies/parsed_cookie.h" 23 #include "net/cookies/parsed_cookie.h"
24 #include "net/http/http_status_code.h" 24 #include "net/http/http_status_code.h"
25 #include "net/url_request/url_fetcher.h" 25 #include "net/url_request/url_fetcher.h"
26 #include "net/url_request/url_request_context_getter.h" 26 #include "net/url_request/url_request_context_getter.h"
27 #include "net/url_request/url_request_status.h" 27 #include "net/url_request/url_request_status.h"
28 #include "ui/base/l10n/l10n_util.h" 28 #include "ui/base/l10n/l10n_util.h"
29 29
30 static const char kOAuthTokenCookie[] = "oauth_token"; 30 static const char kOAuthTokenCookie[] = "oauth_token";
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 break; 552 break;
553 case OAUTH2_REVOKE_TOKEN: 553 case OAUTH2_REVOKE_TOKEN:
554 OnOAuthRevokeTokenFetched(data, status, response_code); 554 OnOAuthRevokeTokenFetched(data, status, response_code);
555 break; 555 break;
556 } 556 }
557 } 557 }
558 558
559 bool GaiaOAuthFetcher::ShouldAutoFetch(RequestType fetch_step) { 559 bool GaiaOAuthFetcher::ShouldAutoFetch(RequestType fetch_step) {
560 return fetch_step <= auto_fetch_limit_; 560 return fetch_step <= auto_fetch_limit_;
561 } 561 }
OLDNEW
« no previous file with comments | « chrome/browser/net/gaia/gaia_oauth_fetcher.h ('k') | chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698