| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/update_client/request_sender.h" | 5 #include "components/update_client/request_sender.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
| 17 #include "components/client_update_protocol/ecdsa.h" | 17 #include "components/client_update_protocol/ecdsa.h" |
| 18 #include "components/update_client/configurator.h" | 18 #include "components/update_client/configurator.h" |
| 19 #include "components/update_client/utils.h" | 19 #include "components/update_client/utils.h" |
| 20 #include "net/http/http_response_headers.h" | 20 #include "net/http/http_response_headers.h" |
| 21 #include "net/url_request/url_fetcher.h" | 21 #include "net/url_request/url_fetcher.h" |
| 22 #include "net/url_request/url_request_status.h" | 22 #include "net/url_request/url_request_status.h" |
| 23 | 23 |
| 24 namespace update_client { | 24 namespace update_client { |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 } | 218 } |
| 219 | 219 |
| 220 int64_t RequestSender::GetInt64HeaderValue(const net::URLFetcher* source, | 220 int64_t RequestSender::GetInt64HeaderValue(const net::URLFetcher* source, |
| 221 const char* header_name) { | 221 const char* header_name) { |
| 222 const auto response_headers(source->GetResponseHeaders()); | 222 const auto response_headers(source->GetResponseHeaders()); |
| 223 return response_headers ? response_headers->GetInt64HeaderValue(header_name) | 223 return response_headers ? response_headers->GetInt64HeaderValue(header_name) |
| 224 : -1; | 224 : -1; |
| 225 } | 225 } |
| 226 | 226 |
| 227 } // namespace update_client | 227 } // namespace update_client |
| OLD | NEW |