Chromium Code Reviews| Index: content/browser/debugger/devtools_netlog_observer.cc |
| =================================================================== |
| --- content/browser/debugger/devtools_netlog_observer.cc (revision 154235) |
| +++ content/browser/debugger/devtools_netlog_observer.cc (working copy) |
| @@ -13,6 +13,7 @@ |
| #include "net/base/load_flags.h" |
| #include "net/http/http_response_headers.h" |
| #include "net/http/http_util.h" |
| +#include "net/spdy/spdy_header_block.h" |
| #include "net/url_request/url_request.h" |
| #include "net/url_request/url_request_netlog_params.h" |
| #include "webkit/glue/resource_loader_bridge.h" |
| @@ -122,6 +123,26 @@ |
| info->request_headers_text = request_line + request_headers.ToString(); |
| break; |
| } |
| + case net::NetLog::TYPE_HTTP_TRANSACTION_SPDY_SEND_REQUEST_HEADERS: { |
|
eroman
2012/08/31 02:27:17
Sadness. I dream of a day where these values are p
mmenke
2012/08/31 02:31:10
Yea, I agree with you there. I'd love to be able
|
| + scoped_ptr<Value> event_params(entry.ParametersToValue()); |
| + net::SpdyHeaderBlock request_headers; |
| + |
| + if (!net::SpdyHeaderBlockFromNetLogParam(event_params.get(), |
| + &request_headers)) { |
| + NOTREACHED(); |
| + } |
| + |
| + // We need to clear headers in case the same url_request is reused for |
| + // several http requests (e.g. see http://crbug.com/80157). |
| + info->request_headers.clear(); |
| + |
| + for (net::SpdyHeaderBlock::const_iterator it = request_headers.begin(); |
| + it != request_headers.end(); ++it) { |
| + info->request_headers.push_back(std::make_pair(it->first, it->second)); |
| + } |
| + info->request_headers_text = ""; |
| + break; |
| + } |
| case net::NetLog::TYPE_HTTP_TRANSACTION_READ_RESPONSE_HEADERS: { |
| scoped_ptr<Value> event_params(entry.ParametersToValue()); |