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

Unified Diff: net/base/network_delegate.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: Callback returns void 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/base/network_delegate.h
diff --git a/net/base/network_delegate.h b/net/base/network_delegate.h
index 4be320b9305ccd869a76239eeb25834aa5d8a83d..282170ba32f24583946c7aef1878b7cc43c3501b 100644
--- a/net/base/network_delegate.h
+++ b/net/base/network_delegate.h
@@ -35,6 +35,7 @@ namespace net {
class CookieOptions;
class HttpRequestHeaders;
class HttpResponseHeaders;
+class ProxyInfo;
class SocketStream;
class URLRequest;
@@ -63,6 +64,9 @@ class NET_EXPORT NetworkDelegate : public base::NonThreadSafe {
int NotifyBeforeSendHeaders(URLRequest* request,
const CompletionCallback& callback,
HttpRequestHeaders* headers);
+ void NotifyBeforeSendProxyHeaders(URLRequest* request,
+ const ProxyInfo* proxy_info,
mef 2014/06/25 17:21:33 Can |proxy_info| be NULL? If not, should it be a r
bengr 2014/06/25 19:25:22 Done.
+ HttpRequestHeaders* headers);
void NotifySendHeaders(URLRequest* request,
const HttpRequestHeaders& headers);
int NotifyHeadersReceived(
@@ -126,6 +130,13 @@ class NET_EXPORT NetworkDelegate : public base::NonThreadSafe {
const CompletionCallback& callback,
HttpRequestHeaders* headers);
+ // Called after a proxy connection. Allows the delegate to read/write
+ // |headers] before they get sent out. |headers| is valid only until
+ // OnCompleted or OnURLRequestDestroyed is called for this request.
+ virtual void OnBeforeSendProxyHeaders(URLRequest* request,
+ const ProxyInfo* proxy_info,
+ HttpRequestHeaders* headers);
+
// Called right before the HTTP request(s) are being sent to the network.
// |headers| is only valid until OnCompleted or OnURLRequestDestroyed is
// called for this request.

Powered by Google App Engine
This is Rietveld 408576698