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

Side by Side Diff: components/data_reduction_proxy/browser/data_reduction_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 COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_TUNNEL_DELE GATE_H_
6 #define COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_TUNNEL_DELE GATE_H_
7
8 #include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_requ est_handler.h"
9 #include "net/http/http_proxy_tunnel_delegate.h"
10
11 namespace net {
12 class HostPortPair;
13 class HttpRequestHeaders;
14 class HttpResponseHeaders;
15 }
16
17 namespace data_reduction_proxy {
18
19 class DataReductionProxyAuthRequestHandler;
20
21 class DataReductionProxyTunnelDelegate : public net::HttpProxyTunnelDelegate {
22 public:
23 explicit DataReductionProxyTunnelDelegate(
24 DataReductionProxyAuthRequestHandler* auth_handler);
25 virtual ~DataReductionProxyTunnelDelegate();
26
27 virtual void OnBeforeRequest(
28 const net::HostPortPair& proxy_server,
29 net::HttpRequestHeaders* extra_headers) OVERRIDE;
30
31 virtual void OnHeadersReceived(
32 const net::HostPortPair& origin,
33 const net::HostPortPair& proxy_server,
34 const net::HttpResponseHeaders& response_headers) OVERRIDE;
35
36 private:
37 DataReductionProxyAuthRequestHandler* auth_handler_;
38
39 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyTunnelDelegate);
40 };
41
42 } // namespace data_reduction_proxy
43
44 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_TUNNEL_D ELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698