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

Unified Diff: net/http/http_cache_transaction.cc

Issue 333113002: Move data reduction proxy to Chrome-Proxy header for authentication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flywheel-refactor-net-fake-a-redirect-response-headers-chrome-proxy-auth
Patch Set: Created 6 years, 6 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: net/http/http_cache_transaction.cc
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index efb21e1df170d8fc01d512acc3c857e71452d9be..2cb8d597a8e3d265a540704e3b2eb76118fbf0e2 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -565,6 +565,12 @@ void HttpCache::Transaction::SetBeforeNetworkStartCallback(
before_network_start_callback_ = callback;
}
+void HttpCache::Transaction::SetBeforeProxyHeadersSentCallback(
+ const BeforeProxyHeadersSentCallback& callback) {
+ DCHECK(!network_trans_);
+ before_proxy_headers_sent_callback_ = callback;
+}
+
int HttpCache::Transaction::ResumeNetworkStart() {
if (network_trans_)
return network_trans_->ResumeNetworkStart();
@@ -893,6 +899,8 @@ int HttpCache::Transaction::DoSendRequest() {
if (rv != OK)
return rv;
network_trans_->SetBeforeNetworkStartCallback(before_network_start_callback_);
+ network_trans_->SetBeforeProxyHeadersSentCallback(
+ before_proxy_headers_sent_callback_);
// Old load timing information, if any, is now obsolete.
old_network_trans_load_timing_.reset();

Powered by Google App Engine
This is Rietveld 408576698