| Index: components/data_reduction_proxy/browser/data_reduction_proxy_tunnel_delegate.cc
|
| diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_tunnel_delegate.cc b/components/data_reduction_proxy/browser/data_reduction_proxy_tunnel_delegate.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e80ae0122ac662936d13e53bc0b2453c7003e874
|
| --- /dev/null
|
| +++ b/components/data_reduction_proxy/browser/data_reduction_proxy_tunnel_delegate.cc
|
| @@ -0,0 +1,34 @@
|
| +// 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.
|
| +
|
| +#include "components/data_reduction_proxy/browser/data_reduction_proxy_tunnel_delegate.h"
|
| +
|
| +#include "net/base/host_port_pair.h"
|
| +#include "net/http/http_request_headers.h"
|
| +#include "net/http/http_response_headers.h"
|
| +
|
| +namespace data_reduction_proxy {
|
| +
|
| +DataReductionProxyTunnelDelegate::DataReductionProxyTunnelDelegate(
|
| + DataReductionProxyAuthRequestHandler* auth_handler)
|
| + : auth_handler_(auth_handler) {
|
| + DCHECK(auth_handler);
|
| +}
|
| +
|
| +DataReductionProxyTunnelDelegate::~DataReductionProxyTunnelDelegate() {
|
| +}
|
| +
|
| +void DataReductionProxyTunnelDelegate::OnBeforeRequest(
|
| + const net::HostPortPair& proxy_server,
|
| + net::HttpRequestHeaders* extra_headers) {
|
| + auth_handler_->MaybeAddProxyTunnelRequestHandler(proxy_server, extra_headers);
|
| +}
|
| +
|
| +void DataReductionProxyTunnelDelegate::OnHeadersReceived(
|
| + const net::HostPortPair& origin,
|
| + const net::HostPortPair& proxy_server,
|
| + const net::HttpResponseHeaders& response_headers) {
|
| +}
|
| +
|
| +} // namespace data_reduction_proxy
|
|
|