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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h

Issue 2224003004: Add Accept-Encoding: br for secure data reduction proxy requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add Accept-Encoding: br for secure data reduction proxy requests Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h
index 4cf3c7c4c44d8bcc3c9db09c21bec86ce0a1bb3c..09f6379bd2d95194bf4659ccf8ebb0d5fbfbcf84 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h
@@ -63,6 +63,10 @@ class DataReductionProxyRequestOptions {
// proxy authentication credentials.
void AddRequestHeader(net::HttpRequestHeaders* request_headers);
+ // Adds 'br' to the Accept-Encoding header if Brotli is enabled.
+ void AddBrotliAcceptEncoding(const net::URLRequest& request,
+ net::HttpRequestHeaders* request_headers);
+
// Stores the supplied key and sets up credentials suitable for authenticating
// with the data reduction proxy.
// This can be called more than once. For example on a platform that does not

Powered by Google App Engine
This is Rietveld 408576698