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

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

Issue 2900613002: Support DevTools for off-main-thread-fetch (Closed)
Patch Set: rebase Created 3 years, 5 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/http/tests/inspector/inspector-test.js » ('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 5c2c7238475c39f1a4c801485b44071ebf97c2ac..d2888def2ae1b3c2a51913f6002ec874f0e145aa 100644
--- a/content/browser/devtools/protocol/network_handler.cc
+++ b/content/browser/devtools/protocol/network_handler.cc
@@ -679,8 +679,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, "" /* loader_id */, request.url.spec(),
Network::Request::Create()
.SetUrl(request.url.spec())
.SetMethod(request.method)
@@ -750,7 +749,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, "" /* loader_id */,
base::TimeTicks::Now().ToInternalValue() /
static_cast<double>(base::Time::kMicrosecondsPerSecond),
Page::ResourceTypeEnum::Other, std::move(response));
@@ -796,8 +795,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, "" /* loader_id */, 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/http/tests/inspector/inspector-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698