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

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: Change WebDataSource to WebDocumentLoader Created 3 years, 4 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 const char* empty_image_directive(); 100 const char* empty_image_directive();
101 101
102 // Gets the directive used by data reduction proxy Lite-Page requests 102 // Gets the directive used by data reduction proxy Lite-Page requests
103 // and responses. 103 // and responses.
104 const char* lite_page_directive(); 104 const char* lite_page_directive();
105 105
106 // Gets the directive used by the data reduction proxy to request 106 // Gets the directive used by the data reduction proxy to request
107 // compressed video. 107 // compressed video.
108 const char* compressed_video_directive(); 108 const char* compressed_video_directive();
109 109
110 // Gets the directive used by the data reduction proxy to tell the client to use
111 // a specific page policy.
112 const char* page_policies_directive();
113
110 // Gets the Chrome-Proxy directive used by data reduction proxy lite page 114 // Gets the Chrome-Proxy directive used by data reduction proxy lite page
111 // preview requests and responses. 115 // preview requests and responses.
112 const char* chrome_proxy_lite_page_directive(); 116 const char* chrome_proxy_lite_page_directive();
113 117
114 // Gets the Chrome-Proxy experiment ("exp") value to force a lite page preview 118 // Gets the Chrome-Proxy experiment ("exp") value to force a lite page preview
115 // for requests that accept lite pages. 119 // for requests that accept lite pages.
116 const char* chrome_proxy_experiment_force_lite_page(); 120 const char* chrome_proxy_experiment_force_lite_page();
117 121
118 // Gets the Chrome-Proxy experiment ("exp") value to force an empty image 122 // Gets the Chrome-Proxy experiment ("exp") value to force an empty image
119 // preview for requests that enable server provided previews. 123 // preview for requests that enable server provided previews.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 const net::HttpResponseHeaders* headers, 213 const net::HttpResponseHeaders* headers,
210 std::string* content_length_fingerprint); 214 std::string* content_length_fingerprint);
211 215
212 // Returns values of the Chrome-Proxy header, but with its fingerprint removed. 216 // Returns values of the Chrome-Proxy header, but with its fingerprint removed.
213 void GetDataReductionProxyHeaderWithFingerprintRemoved( 217 void GetDataReductionProxyHeaderWithFingerprintRemoved(
214 const net::HttpResponseHeaders* headers, 218 const net::HttpResponseHeaders* headers,
215 std::vector<std::string>* values); 219 std::vector<std::string>* values);
216 220
217 } // namespace data_reduction_proxy 221 } // namespace data_reduction_proxy
218 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_HEAD ERS_H_ 222 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_HEAD ERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698