OLD | NEW |
---|---|
(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_ | |
OLD | NEW |