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

Unified Diff: net/http/http_transaction.h

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_network_transaction_unittest.cc ('k') | net/http/http_transaction_test_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_transaction.h
diff --git a/net/http/http_transaction.h b/net/http/http_transaction.h
index ed1b20dac2ffb8298c67c5bfc83d4850027b805b..db8ed5211b0d6c1c1c64aa178d7cff02edba0698 100644
--- a/net/http/http_transaction.h
+++ b/net/http/http_transaction.h
@@ -21,6 +21,7 @@ struct HttpRequestInfo;
class HttpResponseInfo;
class IOBuffer;
struct LoadTimingInfo;
+class ProxyInfo;
class QuicServerInfo;
class X509Certificate;
@@ -33,6 +34,12 @@ class NET_EXPORT_PRIVATE HttpTransaction {
// ResumeNetworkStart is called before establishing a connection.
typedef base::Callback<void(bool* defer)> BeforeNetworkStartCallback;
+ // Provides an opportunity to add proxy-specific request headers. Called after
+ // it is determined that a proxy is being used and before the request headers
+ // are sent. |proxy_info| contains information about the proxy being used.
+ typedef base::Callback<void(
+ const ProxyInfo& proxy_info)> BeforeProxyHeadersSentCallback;
+
// Stops any pending IO and destroys the transaction object.
virtual ~HttpTransaction() {}
@@ -158,6 +165,11 @@ class NET_EXPORT_PRIVATE HttpTransaction {
virtual void SetBeforeNetworkStartCallback(
const BeforeNetworkStartCallback& callback) = 0;
+ // Set the callback to receive notification just before a proxy request
+ // is to be sent.
+ virtual void SetBeforeProxyHeadersSentCallback(
+ const BeforeProxyHeadersSentCallback& callback) = 0;
+
// Resumes the transaction after being deferred.
virtual int ResumeNetworkStart() = 0;
};
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_transaction_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698