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

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

Issue 2555713002: Don't use FetchRequest in FrameFetchContext (Closed)
Patch Set: Rebase 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/FetchContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4de88832d4112d4381fa8a6c6799ec9fb5f6e1a9..fbc9092c6c97db9627ac3281faf1a040f3a321ed 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&);
+
+ // 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&);
+ // Sets the first party for cookies and requestor origin using information
+ // stored in the FetchContext implementation.
+ virtual void setFirstPartyCookieAndRequestorOrigin(ResourceRequest&);
virtual MHTMLArchive* archive() const { return nullptr; }
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/FetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698