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_COMMON_DATA_REDUCTION_PROXY_HEADERS_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_COMMON_DATA_REDUCTION_PROXY_HEADERS_H_ |
6 #define COMPONENTS_DATA_REDUCTION_PROXY_COMMON_DATA_REDUCTION_PROXY_HEADERS_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_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/time/time.h" | 11 #include "base/time/time.h" |
12 #include "net/http/http_response_headers.h" | 12 #include "net/http/http_response_headers.h" |
13 #include "net/proxy/proxy_service.h" | 13 #include "net/proxy/proxy_service.h" |
14 | 14 |
15 namespace data_reduction_proxy { | 15 namespace data_reduction_proxy { |
16 | 16 |
17 namespace fingerprint_actions { | |
bengr
2014/07/18 22:47:55
remove this namespace and use names like:
kChromeP
xingx
2014/07/21 18:51:46
Done and moved to the other CL.
| |
18 | |
19 extern const char kTamperDetectFingerprintChromeProxy[]; | |
20 extern const char kTamperDetectFingerprintVia[]; | |
21 extern const char kTamperDetectFingerprintOtherHeaders[]; | |
22 extern const char kTamperDetectFingerprintContentLength[]; | |
23 | |
24 } // namespace fingerprint_actions | |
25 | |
17 // Contains instructions contained in the Chrome-Proxy header. | 26 // Contains instructions contained in the Chrome-Proxy header. |
18 struct DataReductionProxyInfo { | 27 struct DataReductionProxyInfo { |
19 DataReductionProxyInfo() : bypass_all(false) {} | 28 DataReductionProxyInfo() : bypass_all(false) {} |
20 | 29 |
21 // True if Chrome should bypass all available data reduction proxies. False | 30 // True if Chrome should bypass all available data reduction proxies. False |
22 // if only the currently connected data reduction proxy should be bypassed. | 31 // if only the currently connected data reduction proxy should be bypassed. |
23 bool bypass_all; | 32 bool bypass_all; |
24 | 33 |
25 // Amount of time to bypass the data reduction proxy or proxies. | 34 // Amount of time to bypass the data reduction proxy or proxies. |
26 base::TimeDelta bypass_duration; | 35 base::TimeDelta bypass_duration; |
(...skipping 23 matching lines...) Expand all Loading... | |
50 | 59 |
51 // Searches for the specified Chrome-Proxy action, and if present interprets | 60 // Searches for the specified Chrome-Proxy action, and if present interprets |
52 // its value as a duration in seconds. | 61 // its value as a duration in seconds. |
53 bool GetDataReductionProxyBypassDuration( | 62 bool GetDataReductionProxyBypassDuration( |
54 const net::HttpResponseHeaders* headers, | 63 const net::HttpResponseHeaders* headers, |
55 const std::string& action_prefix, | 64 const std::string& action_prefix, |
56 base::TimeDelta* duration); | 65 base::TimeDelta* duration); |
57 | 66 |
58 } // namespace data_reduction_proxy | 67 } // namespace data_reduction_proxy |
59 #endif // COMPONENTS_DATA_REDUCTION_PROXY_COMMON_DATA_REDUCTION_PROXY_HEADERS_H _ | 68 #endif // COMPONENTS_DATA_REDUCTION_PROXY_COMMON_DATA_REDUCTION_PROXY_HEADERS_H _ |
OLD | NEW |