| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 // Returns true if the scheme has been registered as a secure scheme. | 70 // Returns true if the scheme has been registered as a secure scheme. |
| 71 BLINK_EXPORT static bool shouldTreatURLSchemeAsSecure(const WebString&); | 71 BLINK_EXPORT static bool shouldTreatURLSchemeAsSecure(const WebString&); |
| 72 | 72 |
| 73 // Registers a non-HTTP URL scheme which can be sent CORS requests. | 73 // Registers a non-HTTP URL scheme which can be sent CORS requests. |
| 74 BLINK_EXPORT static void registerURLSchemeAsCORSEnabled(const WebString&); | 74 BLINK_EXPORT static void registerURLSchemeAsCORSEnabled(const WebString&); |
| 75 | 75 |
| 76 // Registers a URL scheme that can register a ServiceWorker. | 76 // Registers a URL scheme that can register a ServiceWorker. |
| 77 BLINK_EXPORT static void registerURLSchemeAsAllowingServiceWorkers(const Web
String&); | 77 BLINK_EXPORT static void registerURLSchemeAsAllowingServiceWorkers(const Web
String&); |
| 78 | 78 |
| 79 // Registers a URL scheme that supports the Fetch API. |
| 80 BLINK_EXPORT static void registerURLSchemeAsSupportingFetchAPI(const WebStri
ng&); |
| 81 |
| 79 // Registers a URL scheme whose resources can be loaded regardless of a page
's Content Security Policy. | 82 // Registers a URL scheme whose resources can be loaded regardless of a page
's Content Security Policy. |
| 80 BLINK_EXPORT static void registerURLSchemeAsBypassingContentSecurityPolicy(c
onst WebString&); | 83 BLINK_EXPORT static void registerURLSchemeAsBypassingContentSecurityPolicy(c
onst WebString&); |
| 81 | 84 |
| 82 // Registers a URL scheme for which some kinds of resources bypass Content S
ecurity Policy. | 85 // Registers a URL scheme for which some kinds of resources bypass Content S
ecurity Policy. |
| 83 // This enum should be kept in sync with Source/platform/weborigin/SchemeReg
istry.h. | 86 // This enum should be kept in sync with Source/platform/weborigin/SchemeReg
istry.h. |
| 84 // Enforced in AssertMatchingEnums.cpp. | 87 // Enforced in AssertMatchingEnums.cpp. |
| 85 enum PolicyAreas : uint32_t { | 88 enum PolicyAreas : uint32_t { |
| 86 PolicyAreaNone = 0, | 89 PolicyAreaNone = 0, |
| 87 PolicyAreaImage = 1 << 0, | 90 PolicyAreaImage = 1 << 0, |
| 88 PolicyAreaStyle = 1 << 1, | 91 PolicyAreaStyle = 1 << 1, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 116 // by bookmarklets or javascript: URLs typed in the omnibox. | 119 // by bookmarklets or javascript: URLs typed in the omnibox. |
| 117 BLINK_EXPORT static void registerURLSchemeAsNotAllowingJavascriptURLs(const
WebString&); | 120 BLINK_EXPORT static void registerURLSchemeAsNotAllowingJavascriptURLs(const
WebString&); |
| 118 | 121 |
| 119 private: | 122 private: |
| 120 WebSecurityPolicy(); | 123 WebSecurityPolicy(); |
| 121 }; | 124 }; |
| 122 | 125 |
| 123 } // namespace blink | 126 } // namespace blink |
| 124 | 127 |
| 125 #endif | 128 #endif |
| OLD | NEW |