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

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

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

Powered by Google App Engine
This is Rietveld 408576698