Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h

Issue 2825543002: Return chrome-proxy-ect header code (post M59 branch) (Closed)
Patch Set: Update for comment by Ryan Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include <vector> 9 #include <vector>
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // ignored if |mark_proxies_as_bad| is false. 61 // ignored if |mark_proxies_as_bad| is false.
62 base::TimeDelta bypass_duration; 62 base::TimeDelta bypass_duration;
63 63
64 // The bypass action specified by the data reduction proxy. 64 // The bypass action specified by the data reduction proxy.
65 DataReductionProxyBypassAction bypass_action; 65 DataReductionProxyBypassAction bypass_action;
66 }; 66 };
67 67
68 // Gets the header used for data reduction proxy requests and responses. 68 // Gets the header used for data reduction proxy requests and responses.
69 const char* chrome_proxy_header(); 69 const char* chrome_proxy_header();
70 70
71 // Gets the chrome-proxy-ect request header that includes the effective
72 // connection type.
73 const char* chrome_proxy_ect_header();
74
71 // Gets the ChromeProxyAcceptTransform header name. 75 // Gets the ChromeProxyAcceptTransform header name.
72 const char* chrome_proxy_accept_transform_header(); 76 const char* chrome_proxy_accept_transform_header();
73 77
74 // Gets the ChromeProxyContentTransform header name. 78 // Gets the ChromeProxyContentTransform header name.
75 const char* chrome_proxy_content_transform_header(); 79 const char* chrome_proxy_content_transform_header();
76 80
77 // Gets the directive used by data reduction proxy Lo-Fi requests and 81 // Gets the directive used by data reduction proxy Lo-Fi requests and
78 // responses. 82 // responses.
79 const char* empty_image_directive(); 83 const char* empty_image_directive();
80 84
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 const net::HttpResponseHeaders* headers, 180 const net::HttpResponseHeaders* headers,
177 std::string* content_length_fingerprint); 181 std::string* content_length_fingerprint);
178 182
179 // Returns values of the Chrome-Proxy header, but with its fingerprint removed. 183 // Returns values of the Chrome-Proxy header, but with its fingerprint removed.
180 void GetDataReductionProxyHeaderWithFingerprintRemoved( 184 void GetDataReductionProxyHeaderWithFingerprintRemoved(
181 const net::HttpResponseHeaders* headers, 185 const net::HttpResponseHeaders* headers,
182 std::vector<std::string>* values); 186 std::vector<std::string>* values);
183 187
184 } // namespace data_reduction_proxy 188 } // namespace data_reduction_proxy
185 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_HEAD ERS_H_ 189 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_HEAD ERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698