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 #include "components/data_reduction_proxy/browser/data_reduction_proxy_tunnel_de
legate.h" |
| 6 |
| 7 #include "net/base/host_port_pair.h" |
| 8 #include "net/http/http_request_headers.h" |
| 9 #include "net/http/http_response_headers.h" |
| 10 |
| 11 namespace data_reduction_proxy { |
| 12 |
| 13 DataReductionProxyTunnelDelegate::DataReductionProxyTunnelDelegate( |
| 14 DataReductionProxyAuthRequestHandler* auth_handler) |
| 15 : auth_handler_(auth_handler) { |
| 16 DCHECK(auth_handler); |
| 17 } |
| 18 |
| 19 DataReductionProxyTunnelDelegate::~DataReductionProxyTunnelDelegate() { |
| 20 } |
| 21 |
| 22 void DataReductionProxyTunnelDelegate::OnBeforeRequest( |
| 23 const net::HostPortPair& proxy_server, |
| 24 net::HttpRequestHeaders* extra_headers) { |
| 25 auth_handler_->MaybeAddProxyTunnelRequestHandler(proxy_server, extra_headers); |
| 26 } |
| 27 |
| 28 void DataReductionProxyTunnelDelegate::OnHeadersReceived( |
| 29 const net::HostPortPair& origin, |
| 30 const net::HostPortPair& proxy_server, |
| 31 const net::HttpResponseHeaders& response_headers) { |
| 32 } |
| 33 |
| 34 } // namespace data_reduction_proxy |
OLD | NEW |