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

Unified Diff: Source/platform/network/ResourceRequest.h

Issue 339593005: Set the target type when creating the request for main resource (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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: Source/platform/network/ResourceRequest.h
diff --git a/Source/platform/network/ResourceRequest.h b/Source/platform/network/ResourceRequest.h
index 6d132c336e86acd00ade4f07ad462e3fb9e5f51b..04881b32146b76856d2e26b318b4c7fdc868f607 100644
--- a/Source/platform/network/ResourceRequest.h
+++ b/Source/platform/network/ResourceRequest.h
@@ -104,6 +104,10 @@ public:
// Gets a copy of the data suitable for passing to another thread.
PassOwnPtr<CrossThreadResourceRequestData> copyData() const;
+ // Initializes the TargetType and the ResourceLoadPriority for the main
+ // resource.
+ void initializeForMainResource(bool isMainFrame);
+
bool isNull() const;
bool isEmpty() const;

Powered by Google App Engine
This is Rietveld 408576698