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

Side by Side Diff: third_party/WebKit/public/web/WebFrameClient.h

Issue 2764993002: CSP: group policies in didAddContentSecurityPolicy. (Closed)
Patch Set: Rebase. Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/web/LocalFrameClientImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 // Called when a Feature-Policy HTTP header is encountered while loading the 229 // Called when a Feature-Policy HTTP header is encountered while loading the
230 // frame's document. 230 // frame's document.
231 virtual void didSetFeaturePolicyHeader( 231 virtual void didSetFeaturePolicyHeader(
232 const WebParsedFeaturePolicy& parsedHeader) {} 232 const WebParsedFeaturePolicy& parsedHeader) {}
233 233
234 // Called when a new Content Security Policy is added to the frame's 234 // Called when a new Content Security Policy is added to the frame's
235 // document. This can be triggered by handling of HTTP headers, handling 235 // document. This can be triggered by handling of HTTP headers, handling
236 // of <meta> element, or by inheriting CSP from the parent (in case of 236 // of <meta> element, or by inheriting CSP from the parent (in case of
237 // about:blank). 237 // about:blank).
238 virtual void didAddContentSecurityPolicy( 238 virtual void didAddContentSecurityPolicies(
239 const WebString& headerValue, 239 const WebVector<WebContentSecurityPolicy>& policies) {}
240 WebContentSecurityPolicyType type,
241 WebContentSecurityPolicySource source,
242 const std::vector<WebContentSecurityPolicy>& policies) {}
243 240
244 // Some frame owner properties have changed for a child frame of this frame. 241 // Some frame owner properties have changed for a child frame of this frame.
245 // Frame owner properties currently include: scrolling, marginwidth and 242 // Frame owner properties currently include: scrolling, marginwidth and
246 // marginheight. 243 // marginheight.
247 virtual void didChangeFrameOwnerProperties(WebFrame* childFrame, 244 virtual void didChangeFrameOwnerProperties(WebFrame* childFrame,
248 const WebFrameOwnerProperties&) {} 245 const WebFrameOwnerProperties&) {}
249 246
250 // Called when a watched CSS selector matches or stops matching. 247 // Called when a watched CSS selector matches or stops matching.
251 virtual void didMatchCSS( 248 virtual void didMatchCSS(
252 WebLocalFrame*, 249 WebLocalFrame*,
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 // Overwrites the given URL to use an HTML5 embed if possible. 759 // Overwrites the given URL to use an HTML5 embed if possible.
763 // An empty URL is returned if the URL is not overriden. 760 // An empty URL is returned if the URL is not overriden.
764 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { 761 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) {
765 return WebURL(); 762 return WebURL();
766 } 763 }
767 }; 764 };
768 765
769 } // namespace blink 766 } // namespace blink
770 767
771 #endif 768 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/LocalFrameClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698