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

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

Issue 2764993002: CSP: group policies in didAddContentSecurityPolicy. (Closed)
Patch Set: CSP send policies in didAddContentSecurityPolicy one by one. Created 3 years, 9 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) 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 const WebParsedFeaturePolicy& parsedHeader) {} 233 const WebParsedFeaturePolicy& parsedHeader) {}
234 234
235 // Called when a new Content Security Policy is added to the frame's 235 // Called when a new Content Security Policy is added to the frame's
236 // document. This can be triggered by handling of HTTP headers, handling 236 // document. This can be triggered by handling of HTTP headers, handling
237 // of <meta> element, or by inheriting CSP from the parent (in case of 237 // of <meta> element, or by inheriting CSP from the parent (in case of
238 // about:blank). 238 // about:blank).
239 virtual void didAddContentSecurityPolicy( 239 virtual void didAddContentSecurityPolicy(
240 const WebString& headerValue, 240 const WebString& headerValue,
241 WebContentSecurityPolicyType type, 241 WebContentSecurityPolicyType type,
242 WebContentSecurityPolicySource source, 242 WebContentSecurityPolicySource source,
243 const std::vector<WebContentSecurityPolicyPolicy>& policies) {} 243 const WebContentSecurityPolicyPolicy& policy) {}
244 244
245 // Some frame owner properties have changed for a child frame of this frame. 245 // Some frame owner properties have changed for a child frame of this frame.
246 // Frame owner properties currently include: scrolling, marginwidth and 246 // Frame owner properties currently include: scrolling, marginwidth and
247 // marginheight. 247 // marginheight.
248 virtual void didChangeFrameOwnerProperties(WebFrame* childFrame, 248 virtual void didChangeFrameOwnerProperties(WebFrame* childFrame,
249 const WebFrameOwnerProperties&) {} 249 const WebFrameOwnerProperties&) {}
250 250
251 // Called when a watched CSS selector matches or stops matching. 251 // Called when a watched CSS selector matches or stops matching.
252 virtual void didMatchCSS( 252 virtual void didMatchCSS(
253 WebLocalFrame*, 253 WebLocalFrame*,
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 // Overwrites the given URL to use an HTML5 embed if possible. 756 // Overwrites the given URL to use an HTML5 embed if possible.
757 // An empty URL is returned if the URL is not overriden. 757 // An empty URL is returned if the URL is not overriden.
758 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) { 758 virtual WebURL overrideFlashEmbedWithHTML(const WebURL& url) {
759 return WebURL(); 759 return WebURL();
760 } 760 }
761 }; 761 };
762 762
763 } // namespace blink 763 } // namespace blink
764 764
765 #endif 765 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698