| Index: net/spdy/spdy_proxy_client_socket.cc
|
| ===================================================================
|
| --- net/spdy/spdy_proxy_client_socket.cc (revision 141317)
|
| +++ net/spdy/spdy_proxy_client_socket.cc (working copy)
|
| @@ -16,7 +16,6 @@
|
| #include "net/base/net_util.h"
|
| #include "net/http/http_auth_cache.h"
|
| #include "net/http/http_auth_handler_factory.h"
|
| -#include "net/http/http_net_log_params.h"
|
| #include "net/http/http_response_headers.h"
|
| #include "net/spdy/spdy_http_utils.h"
|
|
|
| @@ -365,13 +364,13 @@
|
| HttpRequestHeaders request_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));
|
| +
|
| request_.extra_headers.MergeFrom(request_headers);
|
| linked_ptr<SpdyHeaderBlock> headers(new SpdyHeaderBlock());
|
| CreateSpdyHeadersFromHttpRequest(request_, request_headers, headers.get(),
|
| @@ -410,11 +409,9 @@
|
| return ERR_TUNNEL_CONNECTION_FAILED;
|
|
|
| next_state_ = STATE_OPEN;
|
| - 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));
|
|
|
| if (response_.headers->response_code() == 200) {
|
| return OK;
|
|
|