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

Unified Diff: public/web/WebSecurityPolicy.h

Issue 1305253012: Allow 'chrome-extension:' URLs to bypass content settings (1/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/tests/WebDocumentTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebSecurityPolicy.h
diff --git a/public/web/WebSecurityPolicy.h b/public/web/WebSecurityPolicy.h
index cefac548b169aa49d0d1107b794a714e2edcb205..8e190aa4971a984ef9482177512e4709247ad05f 100644
--- a/public/web/WebSecurityPolicy.h
+++ b/public/web/WebSecurityPolicy.h
@@ -82,6 +82,9 @@ public:
// Registers a URL scheme whose resources can be loaded regardless of a page's Content Security Policy.
BLINK_EXPORT static void registerURLSchemeAsBypassingContentSecurityPolicy(const WebString&);
+ // Registers a URL scheme which will always be considered the first-party when loaded in a top-level context.
+ BLINK_EXPORT static void registerURLSchemeAsFirstPartyWhenTopLevel(const WebString&);
+
// Registers a URL scheme for which some kinds of resources bypass Content Security Policy.
// This enum should be kept in sync with Source/platform/weborigin/SchemeRegistry.h.
// Enforced in AssertMatchingEnums.cpp.
« no previous file with comments | « Source/web/tests/WebDocumentTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698