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

Unified Diff: third_party/WebKit/public/web/WebSecurityPolicy.h

Issue 2679383003: Share schemes needed for CSP between the browser and the renderer. (Closed)
Patch Set: Rebase and fix conflict. Created 3 years, 10 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 | « third_party/WebKit/Source/web/WebSecurityPolicy.cpp ('k') | url/url_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebSecurityPolicy.h
diff --git a/third_party/WebKit/public/web/WebSecurityPolicy.h b/third_party/WebKit/public/web/WebSecurityPolicy.h
index 52f09a802f71f1bc890995c6e186ee38a021c406..ef865ba933139082a5e0a4a0839295d4362db067 100644
--- a/third_party/WebKit/public/web/WebSecurityPolicy.h
+++ b/third_party/WebKit/public/web/WebSecurityPolicy.h
@@ -56,32 +56,11 @@ class WebSecurityPolicy {
BLINK_EXPORT static void registerURLSchemeAsSupportingFetchAPI(
const WebString&);
- // 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.
- enum PolicyAreas : uint32_t {
- PolicyAreaNone = 0,
- PolicyAreaImage = 1 << 0,
- PolicyAreaStyle = 1 << 1,
- // Add more policy areas as needed by clients.
- PolicyAreaAll = ~static_cast<uint32_t>(0),
- };
- BLINK_EXPORT static void registerURLSchemeAsBypassingContentSecurityPolicy(
- const WebString& scheme,
- PolicyAreas);
-
// Registers a URL scheme as strictly empty documents, allowing them to
// commit synchronously.
BLINK_EXPORT static void registerURLSchemeAsEmptyDocument(const WebString&);
« no previous file with comments | « third_party/WebKit/Source/web/WebSecurityPolicy.cpp ('k') | url/url_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698