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 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade
rs.h" | 5 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade
rs.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 } | 177 } |
178 | 178 |
179 const char* lite_page_directive() { | 179 const char* lite_page_directive() { |
180 return kLitePageDirective; | 180 return kLitePageDirective; |
181 } | 181 } |
182 | 182 |
183 const char* compressed_video_directive() { | 183 const char* compressed_video_directive() { |
184 return kCompressedVideoDirective; | 184 return kCompressedVideoDirective; |
185 } | 185 } |
186 | 186 |
| 187 const char* page_policies_directive() { |
| 188 return kChromeProxyPagePoliciesDirective; |
| 189 } |
| 190 |
187 const char* chrome_proxy_experiment_force_lite_page() { | 191 const char* chrome_proxy_experiment_force_lite_page() { |
188 return kChromeProxyExperimentForceLitePage; | 192 return kChromeProxyExperimentForceLitePage; |
189 } | 193 } |
190 | 194 |
191 const char* chrome_proxy_experiment_force_empty_image() { | 195 const char* chrome_proxy_experiment_force_empty_image() { |
192 return kChromeProxyExperimentForceEmptyImage; | 196 return kChromeProxyExperimentForceEmptyImage; |
193 } | 197 } |
194 | 198 |
195 const char* if_heavy_qualifier() { | 199 const char* if_heavy_qualifier() { |
196 return kIfHeavyQualifier; | 200 return kIfHeavyQualifier; |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 std::string value; | 518 std::string value; |
515 size_t iter = 0; | 519 size_t iter = 0; |
516 while (headers->EnumerateHeader(&iter, kChromeProxyHeader, &value)) { | 520 while (headers->EnumerateHeader(&iter, kChromeProxyHeader, &value)) { |
517 if (StartsWithActionPrefix(value, kChromeProxyActionFingerprintChromeProxy)) | 521 if (StartsWithActionPrefix(value, kChromeProxyActionFingerprintChromeProxy)) |
518 continue; | 522 continue; |
519 values->push_back(std::move(value)); | 523 values->push_back(std::move(value)); |
520 } | 524 } |
521 } | 525 } |
522 | 526 |
523 } // namespace data_reduction_proxy | 527 } // namespace data_reduction_proxy |
OLD | NEW |