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

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

Issue 2963913002: Factor DRP PreviewsState logic out of content (Closed)
Patch Set: dougarnett comments Created 3 years, 5 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 const char* empty_image_directive(); 88 const char* empty_image_directive();
89 89
90 // Gets the directive used by data reduction proxy Lite-Page requests 90 // Gets the directive used by data reduction proxy Lite-Page requests
91 // and responses. 91 // and responses.
92 const char* lite_page_directive(); 92 const char* lite_page_directive();
93 93
94 // Gets the directive used by the data reduction proxy to request 94 // Gets the directive used by the data reduction proxy to request
95 // compressed video. 95 // compressed video.
96 const char* compressed_video_directive(); 96 const char* compressed_video_directive();
97 97
98 // Gets the directive used by the data reduction proxy to tell the client to use
99 // a specific page policy.
100 const char* page_policies_directive();
101
98 // Gets the Chrome-Proxy directive used by data reduction proxy lite page 102 // Gets the Chrome-Proxy directive used by data reduction proxy lite page
99 // preview requests and responses. 103 // preview requests and responses.
100 const char* chrome_proxy_lite_page_directive(); 104 const char* chrome_proxy_lite_page_directive();
101 105
102 // Gets the Chrome-Proxy experiment ("exp") value to force a lite page preview 106 // Gets the Chrome-Proxy experiment ("exp") value to force a lite page preview
103 // for requests that accept lite pages. 107 // for requests that accept lite pages.
104 const char* chrome_proxy_experiment_force_lite_page(); 108 const char* chrome_proxy_experiment_force_lite_page();
105 109
106 // Gets the Chrome-Proxy experiment ("exp") value to force an empty image 110 // Gets the Chrome-Proxy experiment ("exp") value to force an empty image
107 // preview for requests that enable server provided previews. 111 // preview for requests that enable server provided previews.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 const net::HttpResponseHeaders* headers, 189 const net::HttpResponseHeaders* headers,
186 std::string* content_length_fingerprint); 190 std::string* content_length_fingerprint);
187 191
188 // Returns values of the Chrome-Proxy header, but with its fingerprint removed. 192 // Returns values of the Chrome-Proxy header, but with its fingerprint removed.
189 void GetDataReductionProxyHeaderWithFingerprintRemoved( 193 void GetDataReductionProxyHeaderWithFingerprintRemoved(
190 const net::HttpResponseHeaders* headers, 194 const net::HttpResponseHeaders* headers,
191 std::vector<std::string>* values); 195 std::vector<std::string>* values);
192 196
193 } // namespace data_reduction_proxy 197 } // namespace data_reduction_proxy
194 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_HEAD ERS_H_ 198 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_HEAD ERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698