| 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 #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/url_util.h" | |
| 17 #include "google_apis/gaia/gaia_auth_fetcher.h" | 16 #include "google_apis/gaia/gaia_auth_fetcher.h" |
| 18 #include "google_apis/gaia/gaia_constants.h" | 17 #include "google_apis/gaia/gaia_constants.h" |
| 19 #include "google_apis/gaia/gaia_urls.h" | 18 #include "google_apis/gaia/gaia_urls.h" |
| 20 #include "google_apis/gaia/oauth_request_signer.h" | 19 #include "google_apis/gaia/oauth_request_signer.h" |
| 21 #include "grit/chromium_strings.h" | 20 #include "grit/chromium_strings.h" |
| 22 #include "net/base/load_flags.h" | 21 #include "net/base/load_flags.h" |
| 23 #include "net/cookies/parsed_cookie.h" | 22 #include "net/cookies/parsed_cookie.h" |
| 24 #include "net/http/http_status_code.h" | 23 #include "net/http/http_status_code.h" |
| 25 #include "net/url_request/url_fetcher.h" | 24 #include "net/url_request/url_fetcher.h" |
| 26 #include "net/url_request/url_request_context_getter.h" | 25 #include "net/url_request/url_request_context_getter.h" |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 break; | 556 break; |
| 558 case OAUTH2_REVOKE_TOKEN: | 557 case OAUTH2_REVOKE_TOKEN: |
| 559 OnOAuthRevokeTokenFetched(data, status, response_code); | 558 OnOAuthRevokeTokenFetched(data, status, response_code); |
| 560 break; | 559 break; |
| 561 } | 560 } |
| 562 } | 561 } |
| 563 | 562 |
| 564 bool GaiaOAuthFetcher::ShouldAutoFetch(RequestType fetch_step) { | 563 bool GaiaOAuthFetcher::ShouldAutoFetch(RequestType fetch_step) { |
| 565 return fetch_step <= auto_fetch_limit_; | 564 return fetch_step <= auto_fetch_limit_; |
| 566 } | 565 } |
| OLD | NEW |