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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.h

Issue 2555713002: Don't use FetchRequest in FrameFetchContext (Closed)
Patch Set: Rebase Created 4 years 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/loader/FrameFetchContext.h
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.h b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
index 3df40818ae2b7eac215e8e182c729af6b1d2e7ec..c40eb1a8ba1a4875e8bd4c072ddef0721ba0ec35 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.h
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
@@ -33,6 +33,7 @@
#include "core/CoreExport.h"
#include "core/fetch/FetchContext.h"
+#include "core/fetch/FetchRequest.h"
#include "core/fetch/ResourceFetcher.h"
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/loader/LinkLoader.h"
@@ -41,6 +42,7 @@
namespace blink {
+class ClientHintsPreferences;
class Document;
class DocumentLoader;
class LocalFrame;
@@ -142,10 +144,19 @@ class CORE_EXPORT FrameFetchContext final : public FetchContext {
void addConsoleMessage(const String&,
LogMessageType = LogErrorMessage) const override;
SecurityOrigin* getSecurityOrigin() const override;
- void modifyRequestForCSP(ResourceRequest&) override;
- void addClientHintsIfNecessary(FetchRequest&) override;
- void addCSPHeaderIfNecessary(Resource::Type, FetchRequest&) override;
- void populateRequestData(ResourceRequest&) override;
+
+ void setFirstPartyCookieAndRequestorOrigin(ResourceRequest&) override;
+ void populateResourceRequest(Resource::Type,
+ const ClientHintsPreferences&,
+ const FetchRequest::ResourceWidth&,
+ ResourceRequest&) override;
+
+ // Exposed for testing.
yhirano 2016/12/26 08:56:45 Can you add ForTesting suffix for each function?
tyoshino (SeeGerritForStatus) 2017/01/10 09:36:28 They're exposed only for testing, but also used in
+ void modifyRequestForCSP(ResourceRequest&);
+ void addClientHintsIfNecessary(const ClientHintsPreferences&,
+ const FetchRequest::ResourceWidth&,
+ ResourceRequest&);
+ void addCSPHeaderIfNecessary(Resource::Type, ResourceRequest&);
MHTMLArchive* archive() const override;

Powered by Google App Engine
This is Rietveld 408576698