Chromium Code Reviews| Index: public/web/WebSecurityPolicy.h |
| diff --git a/public/web/WebSecurityPolicy.h b/public/web/WebSecurityPolicy.h |
| index dc834c1d96f2b75cfc9124fd32e1f3a5b1a506c5..6c11f41d98d56128f81dd994cf1355ee5abd9935 100644 |
| --- a/public/web/WebSecurityPolicy.h |
| +++ b/public/web/WebSecurityPolicy.h |
| @@ -67,6 +67,17 @@ 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 for which some kinds of resources bypass Content Security Policy. |
| + // This enum should be kept in sync with Source/platform/weborigin/SchemeRegistry.h. |
|
Mike West
2014/11/18 20:35:46
Can you add something to Source/web/AssertMatching
|
| + 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&); |