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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp

Issue 2751043002: DevTools: expose linkPreload bit on the network request. (Closed)
Patch Set: todo added as per request Created 3 years, 9 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
Index: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
index 803e9d66434117cef7fb3a3b3c175b29b4f957e2..dbced6b7d6229be85a1afa468a0f6dff07069c8d 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
@@ -637,6 +637,8 @@ void InspectorNetworkAgent::willSendRequestInternal(
MixedContentChecker::contextTypeForInspector(frame, request)));
requestInfo->setReferrerPolicy(referrerPolicy(request.getReferrerPolicy()));
+ if (request.isLinkPreload())
+ requestInfo->setIsLinkPreload(true);
tyoshino (SeeGerritForStatus) 2017/03/27 05:41:07 does it make sense to include these in buildObject
String resourceType = InspectorPageAgent::resourceTypeJson(type);
frontend()->requestWillBeSent(

Powered by Google App Engine
This is Rietveld 408576698