| Index: net/http/http_proxy_client_socket.cc
|
| ===================================================================
|
| --- net/http/http_proxy_client_socket.cc (revision 141317)
|
| +++ net/http/http_proxy_client_socket.cc (working copy)
|
| @@ -15,7 +15,6 @@
|
| #include "net/base/net_log.h"
|
| #include "net/base/net_util.h"
|
| #include "net/http/http_basic_stream.h"
|
| -#include "net/http/http_net_log_params.h"
|
| #include "net/http/http_network_session.h"
|
| #include "net/http/http_request_info.h"
|
| #include "net/http/http_response_headers.h"
|
| @@ -406,12 +405,12 @@
|
| auth_->AddAuthorizationHeader(&authorization_headers);
|
| BuildTunnelRequest(request_, authorization_headers, endpoint_,
|
| &request_line_, &request_headers_);
|
| - if (net_log_.IsLoggingAllEvents()) {
|
| - net_log_.AddEvent(
|
| - NetLog::TYPE_HTTP_TRANSACTION_SEND_TUNNEL_HEADERS,
|
| - make_scoped_refptr(new NetLogHttpRequestParameter(
|
| - request_line_, request_headers_)));
|
| - }
|
| +
|
| + net_log_.AddEvent(
|
| + NetLog::TYPE_HTTP_TRANSACTION_SEND_TUNNEL_HEADERS,
|
| + base::Bind(&HttpRequestHeaders::NetLogCallback,
|
| + base::Unretained(&request_headers_),
|
| + &request_line_));
|
| }
|
|
|
| parser_buf_ = new GrowableIOBuffer();
|
| @@ -442,11 +441,9 @@
|
| if (response_.headers->GetParsedHttpVersion() < HttpVersion(1, 0))
|
| return ERR_TUNNEL_CONNECTION_FAILED;
|
|
|
| - if (net_log_.IsLoggingAllEvents()) {
|
| - net_log_.AddEvent(
|
| - NetLog::TYPE_HTTP_TRANSACTION_READ_TUNNEL_RESPONSE_HEADERS,
|
| - make_scoped_refptr(new NetLogHttpResponseParameter(response_.headers)));
|
| - }
|
| + net_log_.AddEvent(
|
| + NetLog::TYPE_HTTP_TRANSACTION_READ_TUNNEL_RESPONSE_HEADERS,
|
| + base::Bind(&HttpResponseHeaders::NetLogCallback, response_.headers));
|
|
|
| switch (response_.headers->response_code()) {
|
| case 200: // OK
|
|
|