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/data_reduction_proxy/core/browser/data_reduction_proxy_tamp
er_detection.h" | 5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_tamp
er_detection.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cstring> | 8 #include <cstring> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
11 #include "base/md5.h" | 11 #include "base/md5.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram_macros.h" |
13 #include "base/metrics/sparse_histogram.h" | 13 #include "base/metrics/sparse_histogram.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade
rs.h" | 16 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade
rs.h" |
17 #include "net/base/mime_util.h" | 17 #include "net/base/mime_util.h" |
18 #include "net/http/http_response_headers.h" | 18 #include "net/http/http_response_headers.h" |
19 #include "net/http/http_util.h" | 19 #include "net/http/http_util.h" |
20 | 20 |
21 #if defined(OS_ANDROID) | 21 #if defined(OS_ANDROID) |
22 #include "net/android/network_library.h" | 22 #include "net/android/network_library.h" |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 std::vector<std::string> values; | 531 std::vector<std::string> values; |
532 std::string value; | 532 std::string value; |
533 void* iter = NULL; | 533 void* iter = NULL; |
534 while (headers->EnumerateHeader(&iter, header_name, &value)) { | 534 while (headers->EnumerateHeader(&iter, header_name, &value)) { |
535 values.push_back(value); | 535 values.push_back(value); |
536 } | 536 } |
537 return values; | 537 return values; |
538 } | 538 } |
539 | 539 |
540 } // namespace data_reduction_proxy | 540 } // namespace data_reduction_proxy |
OLD | NEW |