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

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

Issue 2751023005: DevTools: expose linkPreload bit on the network request (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/browser_protocol.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60c94f563afbd6720a4f003a5733095d6587a1a4..bd8578f92f1b055a4fcbf07df5e4310870a033e0 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 (initiatorInfo.isLinkPreload)
+ requestInfo->setIsLinkPreload(true);
String resourceType = InspectorPageAgent::resourceTypeJson(type);
frontend()->requestWillBeSent(
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/browser_protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698