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