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 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_HEADERS
_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_HEADERS
_H_ |
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_HEADERS
_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_HEADERS
_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "net/proxy/proxy_service.h" | 13 #include "net/proxy/proxy_service.h" |
14 | 14 |
15 class GURL; | |
16 | |
17 namespace net { | 15 namespace net { |
18 | 16 |
19 class HttpResponseHeaders; | 17 class HttpResponseHeaders; |
20 | 18 |
21 } // namespace net | 19 } // namespace net |
22 | 20 |
23 namespace data_reduction_proxy { | 21 namespace data_reduction_proxy { |
24 | 22 |
25 class DataReductionProxyEventCreator; | |
26 | |
27 // Values of the UMA DataReductionProxy.BypassType{Primary|Fallback} and | 23 // Values of the UMA DataReductionProxy.BypassType{Primary|Fallback} and |
28 // DataReductionProxy.BlockType{Primary|Fallback} histograms. This enum must | 24 // DataReductionProxy.BlockType{Primary|Fallback} histograms. This enum must |
29 // remain synchronized with the enum of the same name in | 25 // remain synchronized with the enum of the same name in |
30 // metrics/histograms/histograms.xml. | 26 // metrics/histograms/histograms.xml. |
31 enum DataReductionProxyBypassType { | 27 enum DataReductionProxyBypassType { |
32 #define BYPASS_EVENT_TYPE(label, value) BYPASS_EVENT_TYPE_ ## label = value, | 28 #define BYPASS_EVENT_TYPE(label, value) BYPASS_EVENT_TYPE_ ## label = value, |
33 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_bypas
s_type_list.h" | 29 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_bypas
s_type_list.h" |
34 #undef BYPASS_EVENT_TYPE | 30 #undef BYPASS_EVENT_TYPE |
35 }; | 31 }; |
36 | 32 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 const net::HttpResponseHeaders* headers, | 173 const net::HttpResponseHeaders* headers, |
178 std::string* content_length_fingerprint); | 174 std::string* content_length_fingerprint); |
179 | 175 |
180 // Returns values of the Chrome-Proxy header, but with its fingerprint removed. | 176 // Returns values of the Chrome-Proxy header, but with its fingerprint removed. |
181 void GetDataReductionProxyHeaderWithFingerprintRemoved( | 177 void GetDataReductionProxyHeaderWithFingerprintRemoved( |
182 const net::HttpResponseHeaders* headers, | 178 const net::HttpResponseHeaders* headers, |
183 std::vector<std::string>* values); | 179 std::vector<std::string>* values); |
184 | 180 |
185 } // namespace data_reduction_proxy | 181 } // namespace data_reduction_proxy |
186 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_HEAD
ERS_H_ | 182 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_HEAD
ERS_H_ |
OLD | NEW |