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

Unified Diff: content/browser/devtools/protocol/network_handler.cc

Issue 2899973003: [wip]devtools
Patch Set: cleanup Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/protocol/network_handler.cc
diff --git a/content/browser/devtools/protocol/network_handler.cc b/content/browser/devtools/protocol/network_handler.cc
index 62abd9ece33f18a6bb49276e8ef33653c28e7fee..975aeea4b86a2daf98d076249da6ca9d129a73b3 100644
--- a/content/browser/devtools/protocol/network_handler.cc
+++ b/content/browser/devtools/protocol/network_handler.cc
@@ -621,8 +621,7 @@ void NetworkHandler::NavigationPreloadRequestSent(
for (net::HttpRequestHeaders::Iterator it(headers); it.GetNext();)
headers_dict->setString(it.name(), it.value());
frontend_->RequestWillBeSent(
- request_id, version_id /* frameId */, version_id /* loaderId */,
- "" /* documentURL */,
+ request_id, "" /* loaderId */, request.url.spec() /* documentURL */,
Network::Request::Create()
.SetUrl(request.url.spec())
.SetMethod(request.method)
@@ -692,7 +691,7 @@ void NetworkHandler::NavigationPreloadResponseReceived(
response->SetRemoteIPAddress(head.socket_address.HostForURL());
response->SetRemotePort(head.socket_address.port());
frontend_->ResponseReceived(
- request_id, version_id /* frameId */, version_id /* loaderId */,
+ request_id, "" /* loaderId */,
base::TimeTicks::Now().ToInternalValue() /
static_cast<double>(base::Time::kMicrosecondsPerSecond),
Page::ResourceTypeEnum::Other, std::move(response));
@@ -738,8 +737,7 @@ void NetworkHandler::NavigationFailed(
for (net::HttpRequestHeaders::Iterator it(headers); it.GetNext();)
headers_dict->setString(it.name(), it.value());
frontend_->RequestWillBeSent(
- request_id, request_id /* frameId */, request_id /* loaderId */,
- common_params.url.spec(),
+ request_id, "" /* loaderId */, common_params.url.spec(),
Network::Request::Create()
.SetUrl(common_params.url.spec())
.SetMethod(common_params.method)
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698