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

Side by Side Diff: components/data_reduction_proxy/browser/data_reduction_proxy_tunnel_delegate.cc

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 #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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698