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

Unified Diff: third_party/WebKit/Source/core/fetch/FetchContext.h

Issue 2555713002: Don't use FetchRequest in FrameFetchContext (Closed)
Patch Set: a Created 3 years, 11 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/fetch/FetchContext.h
diff --git a/third_party/WebKit/Source/core/fetch/FetchContext.h b/third_party/WebKit/Source/core/fetch/FetchContext.h
index 7711b93299f3cbfcb8d0ed01f9702dede820bdfc..55fbd1989dc59ea626d2483034fc44549271691d 100644
--- a/third_party/WebKit/Source/core/fetch/FetchContext.h
+++ b/third_party/WebKit/Source/core/fetch/FetchContext.h
@@ -44,6 +44,7 @@
namespace blink {
+class ClientHintsPreferences;
class KURL;
class MHTMLArchive;
class ResourceError;
@@ -165,10 +166,17 @@ class CORE_EXPORT FetchContext
virtual void addConsoleMessage(const String&,
LogMessageType = LogErrorMessage) const;
virtual SecurityOrigin* getSecurityOrigin() const { return nullptr; }
- virtual void modifyRequestForCSP(ResourceRequest&);
- virtual void addClientHintsIfNecessary(FetchRequest&);
- virtual void addCSPHeaderIfNecessary(Resource::Type, FetchRequest&);
- virtual void populateRequestData(ResourceRequest&);
+
+ // Sets the first party for cookies and requestor origin using information
+ // stored in the FetchContext implementation.
+ virtual void setFirstPartyCookieAndRequestorOrigin(ResourceRequest&);
+ // Populates the ResourceRequest using the given values and information
+ // stored in the FetchContext implementation. Used by ResourceFetcher to
+ // prepare a ResourceRequest instance at the start of resource loading.
+ virtual void populateResourceRequest(Resource::Type,
+ const ClientHintsPreferences&,
+ const FetchRequest::ResourceWidth&,
+ ResourceRequest&);
virtual MHTMLArchive* archive() const { return nullptr; }

Powered by Google App Engine
This is Rietveld 408576698