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

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: errata 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
« no previous file with comments | « net/http/http_cache_transaction.h ('k') | net/http/http_network_transaction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_transaction.cc
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index 6c9140b5591657aace00812ff0fef3135a13d6a6..bf791118be88b704966c7d3a886d5fcc4c924f63 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -566,6 +566,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();
@@ -894,6 +900,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();
« no previous file with comments | « net/http/http_cache_transaction.h ('k') | net/http/http_network_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698