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

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

Issue 2887423002: Add an about:flag to support alternative data saver features (Closed)
Patch Set: tbansal nits Created 3 years, 7 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const char* compressed_video_directive(); 91 const char* compressed_video_directive();
92 92
93 // Gets the directive used by the data reduction proxy to request that 93 // Gets the directive used by the data reduction proxy to request that
94 // a resource not be transformed. 94 // a resource not be transformed.
95 const char* identity_directive(); 95 const char* identity_directive();
96 96
97 // Gets the Chrome-Proxy directive used by data reduction proxy lite page 97 // Gets the Chrome-Proxy directive used by data reduction proxy lite page
98 // preview requests and responses. 98 // preview requests and responses.
99 const char* chrome_proxy_lite_page_directive(); 99 const char* chrome_proxy_lite_page_directive();
100 100
101 // Gets the Chrome-Proxy directive used by data reduction proxy lite page 101 // Gets the Chrome-Proxy "exp" directive value used by data reduction proxy lite
102 // preview experiment to ignore the blacklist. 102 // page preview experiment to ignore the blacklist.
103 const char* chrome_proxy_lite_page_ignore_blacklist_directive(); 103 const char* chrome_proxy_lite_page_ignore_blacklist();
104 104
105 // Requests a transformation only if the server determines that the page is 105 // Requests a transformation only if the server determines that the page is
106 // otherwise heavy (i.e., the associated page load ordinarily requires the 106 // otherwise heavy (i.e., the associated page load ordinarily requires the
107 // network to transfer of a lot of bytes). Added to a previews directive. E.g., 107 // network to transfer of a lot of bytes). Added to a previews directive. E.g.,
108 // "lite-page;if-heavy". 108 // "lite-page;if-heavy".
109 const char* if_heavy_qualifier(); 109 const char* if_heavy_qualifier();
110 110
111 // Returns true if the Chrome-Proxy-Content-Transform response header indicates 111 // Returns true if the Chrome-Proxy-Content-Transform response header indicates
112 // that an empty image has been provided. 112 // that an empty image has been provided.
113 bool IsEmptyImagePreview(const net::HttpResponseHeaders& headers); 113 bool IsEmptyImagePreview(const net::HttpResponseHeaders& headers);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 const net::HttpResponseHeaders* headers, 180 const net::HttpResponseHeaders* headers,
181 std::string* content_length_fingerprint); 181 std::string* content_length_fingerprint);
182 182
183 // 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.
184 void GetDataReductionProxyHeaderWithFingerprintRemoved( 184 void GetDataReductionProxyHeaderWithFingerprintRemoved(
185 const net::HttpResponseHeaders* headers, 185 const net::HttpResponseHeaders* headers,
186 std::vector<std::string>* values); 186 std::vector<std::string>* values);
187 187
188 } // namespace data_reduction_proxy 188 } // namespace data_reduction_proxy
189 #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