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

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

Issue 2825543002: Return chrome-proxy-ect header code (post M59 branch) (Closed)
Patch Set: Update for comment by Ryan Created 3 years, 8 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
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h
index f36cea458de7a0cb5c20d8eb24ea3dcdcc72f9e1..f32107bc5e19d516052fd5262d074b06a2370e9f 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h
@@ -157,6 +157,17 @@ class DataReductionProxyNetworkDelegate : public net::LayeredNetworkDelegate {
net::HttpRequestHeaders* request_headers,
const net::URLRequest& request) const;
+ // May add chrome-proxy-ect header to |request_headers| if adding of
+ // chrome-proxy-ect is enabled via field trial and a valid estimate of
+ // network quality is available. This method should be called only when the
+ // resolved proxy for |request| is a data saver proxy.
+ void MaybeAddChromeProxyECTHeader(net::HttpRequestHeaders* request_headers,
+ const net::URLRequest& request) const;
+
+ // Removes the chrome-proxy-ect header from |request_headers|.
+ void RemoveChromeProxyECTHeader(
+ net::HttpRequestHeaders* request_headers) const;
+
// All raw Data Reduction Proxy pointers must outlive |this|.
DataReductionProxyConfig* data_reduction_proxy_config_;
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698