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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/FetchInitiatorInfo.h

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
Index: third_party/WebKit/Source/platform/loader/fetch/FetchInitiatorInfo.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/FetchInitiatorInfo.h b/third_party/WebKit/Source/platform/loader/fetch/FetchInitiatorInfo.h
index eb31fa7e7ef0752fa83109ac40ce9f0928e8dd71..1c011a5d543054ed8bd3895ce45298a12bdc2d5e 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/FetchInitiatorInfo.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/FetchInitiatorInfo.h
@@ -35,13 +35,17 @@ namespace blink {
struct FetchInitiatorInfo {
DISALLOW_NEW();
FetchInitiatorInfo()
- : name(), position(TextPosition::belowRangePosition()), startTime(0.0) {}
+ : name(),
+ position(TextPosition::belowRangePosition()),
+ startTime(0.0),
+ isLinkPreload(false) {}
// When adding members, CrossThreadFetchInitiatorInfoData should be
// updated.
AtomicString name;
TextPosition position;
double startTime;
+ bool isLinkPreload;
};
// Encode AtomicString as String to cross threads.
@@ -50,19 +54,22 @@ struct CrossThreadFetchInitiatorInfoData {
explicit CrossThreadFetchInitiatorInfoData(const FetchInitiatorInfo& info)
: name(info.name.getString().isolatedCopy()),
position(info.position),
- startTime(info.startTime) {}
+ startTime(info.startTime),
+ isLinkPreload(info.isLinkPreload) {}
operator FetchInitiatorInfo() const {
FetchInitiatorInfo info;
info.name = AtomicString(name);
info.position = position;
info.startTime = startTime;
+ info.isLinkPreload = isLinkPreload;
return info;
}
String name;
TextPosition position;
double startTime;
+ bool isLinkPreload;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698