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

Side by Side Diff: third_party/WebKit/Source/core/fetch/FetchContext.h

Issue 2372563002: Adding Embedding-CSP HTTP header (Closed)
Patch Set: ASCII DCHECK and a comment Created 4 years, 2 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 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 virtual bool defersLoading() const { return false; } 145 virtual bool defersLoading() const { return false; }
146 virtual bool isLoadComplete() const { return false; } 146 virtual bool isLoadComplete() const { return false; }
147 virtual bool pageDismissalEventBeingDispatched() const { return false; } 147 virtual bool pageDismissalEventBeingDispatched() const { return false; }
148 virtual bool updateTimingInfoForIFrameNavigation(ResourceTimingInfo*) { 148 virtual bool updateTimingInfoForIFrameNavigation(ResourceTimingInfo*) {
149 return false; 149 return false;
150 } 150 }
151 virtual void sendImagePing(const KURL&); 151 virtual void sendImagePing(const KURL&);
152 virtual void addConsoleMessage(const String&, 152 virtual void addConsoleMessage(const String&,
153 LogMessageType = LogErrorMessage) const; 153 LogMessageType = LogErrorMessage) const;
154 virtual SecurityOrigin* getSecurityOrigin() const { return nullptr; } 154 virtual SecurityOrigin* getSecurityOrigin() const { return nullptr; }
155 virtual void upgradeInsecureRequest(ResourceRequest&); 155 virtual void modifyRequestForCSP(ResourceRequest&);
156 virtual void addClientHintsIfNecessary(FetchRequest&); 156 virtual void addClientHintsIfNecessary(FetchRequest&);
157 virtual void addCSPHeaderIfNecessary(Resource::Type, FetchRequest&); 157 virtual void addCSPHeaderIfNecessary(Resource::Type, FetchRequest&);
158 virtual void populateRequestData(ResourceRequest&); 158 virtual void populateRequestData(ResourceRequest&);
159 159
160 virtual MHTMLArchive* archive() const { return nullptr; } 160 virtual MHTMLArchive* archive() const { return nullptr; }
161 161
162 virtual ResourceLoadPriority modifyPriorityForExperiments( 162 virtual ResourceLoadPriority modifyPriorityForExperiments(
163 ResourceLoadPriority priority) { 163 ResourceLoadPriority priority) {
164 return priority; 164 return priority;
165 } 165 }
166 166
167 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } 167 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; }
168 168
169 protected: 169 protected:
170 FetchContext() {} 170 FetchContext() {}
171 }; 171 };
172 172
173 } // namespace blink 173 } // namespace blink
174 174
175 #endif 175 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698