Index: components/data_reduction_proxy/browser/data_reduction_proxy_tunnel_delegate.h |
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_tunnel_delegate.h b/components/data_reduction_proxy/browser/data_reduction_proxy_tunnel_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..99c53a69870c929330c5193ec525208685843eff |
--- /dev/null |
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_tunnel_delegate.h |
@@ -0,0 +1,44 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_TUNNEL_DELEGATE_H_ |
+#define COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_TUNNEL_DELEGATE_H_ |
+ |
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h" |
+#include "net/http/http_proxy_tunnel_delegate.h" |
+ |
+namespace net { |
+class HostPortPair; |
+class HttpRequestHeaders; |
+class HttpResponseHeaders; |
+} |
+ |
+namespace data_reduction_proxy { |
+ |
+class DataReductionProxyAuthRequestHandler; |
+ |
+class DataReductionProxyTunnelDelegate : public net::HttpProxyTunnelDelegate { |
+ public: |
+ explicit DataReductionProxyTunnelDelegate( |
+ DataReductionProxyAuthRequestHandler* auth_handler); |
+ virtual ~DataReductionProxyTunnelDelegate(); |
+ |
+ virtual void OnBeforeRequest( |
+ const net::HostPortPair& proxy_server, |
+ net::HttpRequestHeaders* extra_headers) OVERRIDE; |
+ |
+ virtual void OnHeadersReceived( |
+ const net::HostPortPair& origin, |
+ const net::HostPortPair& proxy_server, |
+ const net::HttpResponseHeaders& response_headers) OVERRIDE; |
+ |
+ private: |
+ DataReductionProxyAuthRequestHandler* auth_handler_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(DataReductionProxyTunnelDelegate); |
+}; |
+ |
+} // namespace data_reduction_proxy |
+ |
+#endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_TUNNEL_DELEGATE_H_ |