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

Side by Side Diff: net/http/http_proxy_tunnel_delegate.h

Issue 517693002: Add embedder-specific headers to HTTP CONNECT tunnel request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added receive notification and test Created 6 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_HTTP_HTTP_PROXY_TUNNEL_DELEGATE_H_
6 #define NET_HTTP_HTTP_PROXY_TUNNEL_DELEGATE_H_
7
8 #include "net/base/net_export.h"
9
10 namespace net {
11
12 class HttpRequestHeaders;
13 class HttpResponseHeaders;
14 class HostPortPair;
15
16 // Delegate for requests to set up an HTTPS tunnel using the HTTP CONNECT
17 // method.
18 class NET_EXPORT HttpProxyTunnelDelegate {
19 public:
20 // Called immediately before a proxy tunnel request is sent.
21 // Provides the embedder an opportunity to add extra request headers.
mef 2014/09/05 17:22:51 Would it make sense to comment on parameters here
22 virtual void OnBeforeRequest(const HostPortPair& proxy_server,
23 HttpRequestHeaders* extra_headers) = 0;
24
25 // Called after the response headers for the tunnel request are received.
26 virtual void OnHeadersReceived(
27 const HostPortPair& origin,
28 const HostPortPair& proxy_server,
29 const HttpResponseHeaders& response_headers) = 0;
30 };
31
32 }
33
34 #endif // NET_HTTP_HTTP_PROXY_TUNNEL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698