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

Side by Side Diff: content/browser/devtools/devtools_netlog_observer.cc

Issue 934823005: Rename SPDY netlog strings to HTTP2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename SOURCE_SPDY_SESSION. Created 5 years, 10 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/devtools/devtools_netlog_observer.h" 5 #include "content/browser/devtools/devtools_netlog_observer.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 #include "content/public/browser/content_browser_client.h" 10 #include "content/public/browser/content_browser_client.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // several http requests (e.g. see http://crbug.com/80157). 99 // several http requests (e.g. see http://crbug.com/80157).
100 info->request_headers.clear(); 100 info->request_headers.clear();
101 101
102 for (net::HttpRequestHeaders::Iterator it(request_headers); 102 for (net::HttpRequestHeaders::Iterator it(request_headers);
103 it.GetNext();) { 103 it.GetNext();) {
104 info->request_headers.push_back(std::make_pair(it.name(), it.value())); 104 info->request_headers.push_back(std::make_pair(it.name(), it.value()));
105 } 105 }
106 info->request_headers_text = request_line + request_headers.ToString(); 106 info->request_headers_text = request_line + request_headers.ToString();
107 break; 107 break;
108 } 108 }
109 case net::NetLog::TYPE_HTTP_TRANSACTION_SPDY_SEND_REQUEST_HEADERS: { 109 case net::NetLog::TYPE_HTTP_TRANSACTION_HTTP2_SEND_REQUEST_HEADERS: {
110 scoped_ptr<base::Value> event_params(entry.ParametersToValue()); 110 scoped_ptr<base::Value> event_params(entry.ParametersToValue());
111 net::SpdyHeaderBlock request_headers; 111 net::SpdyHeaderBlock request_headers;
112 112
113 if (!net::SpdyHeaderBlockFromNetLogParam(event_params.get(), 113 if (!net::SpdyHeaderBlockFromNetLogParam(event_params.get(),
114 &request_headers)) { 114 &request_headers)) {
115 NOTREACHED(); 115 NOTREACHED();
116 } 116 }
117 117
118 // We need to clear headers in case the same url_request is reused for 118 // We need to clear headers in case the same url_request is reused for
119 // several http requests (e.g. see http://crbug.com/80157). 119 // several http requests (e.g. see http://crbug.com/80157).
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 uint32 source_id = request->net_log().source().id; 201 uint32 source_id = request->net_log().source().id;
202 DevToolsNetLogObserver* dev_tools_net_log_observer = 202 DevToolsNetLogObserver* dev_tools_net_log_observer =
203 DevToolsNetLogObserver::GetInstance(); 203 DevToolsNetLogObserver::GetInstance();
204 if (dev_tools_net_log_observer == NULL) 204 if (dev_tools_net_log_observer == NULL)
205 return; 205 return;
206 response->head.devtools_info = 206 response->head.devtools_info =
207 dev_tools_net_log_observer->GetResourceInfo(source_id); 207 dev_tools_net_log_observer->GetResourceInfo(source_id);
208 } 208 }
209 209
210 } // namespace content 210 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/data/webui/net_internals/log_view_painter.js ('k') | net/base/net_log_event_type_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698