| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 PolicyAreaNone = 0, | 107 PolicyAreaNone = 0, |
| 108 PolicyAreaImage = 1 << 0, | 108 PolicyAreaImage = 1 << 0, |
| 109 PolicyAreaStyle = 1 << 1, | 109 PolicyAreaStyle = 1 << 1, |
| 110 // Add more policy areas as needed by clients. | 110 // Add more policy areas as needed by clients. |
| 111 PolicyAreaAll = ~static_cast<uint32_t>(0), | 111 PolicyAreaAll = ~static_cast<uint32_t>(0), |
| 112 }; | 112 }; |
| 113 static void registerURLSchemeAsBypassingContentSecurityPolicy(const String&
scheme, PolicyAreas = PolicyAreaAll); | 113 static void registerURLSchemeAsBypassingContentSecurityPolicy(const String&
scheme, PolicyAreas = PolicyAreaAll); |
| 114 static void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const
String& scheme); | 114 static void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const
String& scheme); |
| 115 static bool schemeShouldBypassContentSecurityPolicy(const String& scheme, Po
licyAreas = PolicyAreaAll); | 115 static bool schemeShouldBypassContentSecurityPolicy(const String& scheme, Po
licyAreas = PolicyAreaAll); |
| 116 | 116 |
| 117 // Schemes which bypass Secure Context checks defined in |
| 118 // https://w3c.github.io/webappsec/specs/powerfulfeatures/#is-origin-trustwo
rthy. |
| 119 static void registerURLSchemeBypassingSecureContextCheck(const String& schem
e); |
| 120 static bool schemeShouldBypassSecureContextCheck(const String& scheme); |
| 121 |
| 122 |
| 117 private: | 123 private: |
| 118 static const URLSchemesSet& localSchemes(); | 124 static const URLSchemesSet& localSchemes(); |
| 119 }; | 125 }; |
| 120 | 126 |
| 121 } // namespace blink | 127 } // namespace blink |
| 122 | 128 |
| 123 #endif // SchemeRegistry_h | 129 #endif // SchemeRegistry_h |
| OLD | NEW |