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