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

Side by Side Diff: third_party/WebKit/Source/core/fetch/FetchContext.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 #include "core/fetch/FetchInitiatorInfo.h" 36 #include "core/fetch/FetchInitiatorInfo.h"
37 #include "core/fetch/FetchRequest.h" 37 #include "core/fetch/FetchRequest.h"
38 #include "core/fetch/Resource.h" 38 #include "core/fetch/Resource.h"
39 #include "platform/heap/Handle.h" 39 #include "platform/heap/Handle.h"
40 #include "platform/network/ResourceLoadPriority.h" 40 #include "platform/network/ResourceLoadPriority.h"
41 #include "platform/network/ResourceRequest.h" 41 #include "platform/network/ResourceRequest.h"
42 #include "wtf/Noncopyable.h" 42 #include "wtf/Noncopyable.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class ClientHintsPreferences;
46 class KURL; 47 class KURL;
47 class MHTMLArchive; 48 class MHTMLArchive;
48 class ResourceError; 49 class ResourceError;
49 class ResourceResponse; 50 class ResourceResponse;
50 class ResourceTimingInfo; 51 class ResourceTimingInfo;
51 class WebTaskRunner; 52 class WebTaskRunner;
52 enum class WebCachePolicy; 53 enum class WebCachePolicy;
53 54
54 enum FetchResourceType { FetchMainResource, FetchSubresource }; 55 enum FetchResourceType { FetchMainResource, FetchSubresource };
55 56
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 virtual bool defersLoading() const { return false; } 150 virtual bool defersLoading() const { return false; }
150 virtual bool isLoadComplete() const { return false; } 151 virtual bool isLoadComplete() const { return false; }
151 virtual bool pageDismissalEventBeingDispatched() const { return false; } 152 virtual bool pageDismissalEventBeingDispatched() const { return false; }
152 virtual bool updateTimingInfoForIFrameNavigation(ResourceTimingInfo*) { 153 virtual bool updateTimingInfoForIFrameNavigation(ResourceTimingInfo*) {
153 return false; 154 return false;
154 } 155 }
155 virtual void sendImagePing(const KURL&); 156 virtual void sendImagePing(const KURL&);
156 virtual void addConsoleMessage(const String&, 157 virtual void addConsoleMessage(const String&,
157 LogMessageType = LogErrorMessage) const; 158 LogMessageType = LogErrorMessage) const;
158 virtual SecurityOrigin* getSecurityOrigin() const { return nullptr; } 159 virtual SecurityOrigin* getSecurityOrigin() const { return nullptr; }
159 virtual void modifyRequestForCSP(ResourceRequest&); 160
160 virtual void addClientHintsIfNecessary(FetchRequest&); 161 virtual void setFirstPartyCookieAndRequestorOrigin(ResourceRequest&);
161 virtual void addCSPHeaderIfNecessary(Resource::Type, FetchRequest&); 162 virtual void populateResourceRequest(Resource::Type,
yhirano 2016/12/26 08:56:45 Can you add a method comment?
tyoshino (SeeGerritForStatus) 2017/01/10 09:36:28 Done.
162 virtual void populateRequestData(ResourceRequest&); 163 const ClientHintsPreferences&,
164 const FetchRequest::ResourceWidth&,
165 ResourceRequest&);
163 166
164 virtual MHTMLArchive* archive() const { return nullptr; } 167 virtual MHTMLArchive* archive() const { return nullptr; }
165 168
166 virtual ResourceLoadPriority modifyPriorityForExperiments( 169 virtual ResourceLoadPriority modifyPriorityForExperiments(
167 ResourceLoadPriority priority) { 170 ResourceLoadPriority priority) {
168 return priority; 171 return priority;
169 } 172 }
170 173
171 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } 174 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; }
172 175
173 protected: 176 protected:
174 FetchContext() {} 177 FetchContext() {}
175 }; 178 };
176 179
177 } // namespace blink 180 } // namespace blink
178 181
179 #endif 182 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698