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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // warnings. For example, https and data are secure schemes because they | 66 // warnings. For example, https and data are secure schemes because they |
67 // cannot be corrupted by active network attackers. | 67 // cannot be corrupted by active network attackers. |
68 BLINK_EXPORT static void registerURLSchemeAsSecure(const WebString&); | 68 BLINK_EXPORT static void registerURLSchemeAsSecure(const WebString&); |
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. |
| 77 BLINK_EXPORT static void registerURLSchemeAsAllowingServiceWorkers(const Web
String&); |
| 78 |
76 // Registers a URL scheme whose resources can be loaded regardless of a page
's Content Security Policy. | 79 // Registers a URL scheme whose resources can be loaded regardless of a page
's Content Security Policy. |
77 BLINK_EXPORT static void registerURLSchemeAsBypassingContentSecurityPolicy(c
onst WebString&); | 80 BLINK_EXPORT static void registerURLSchemeAsBypassingContentSecurityPolicy(c
onst WebString&); |
78 | 81 |
79 // Registers a URL scheme for which some kinds of resources bypass Content S
ecurity Policy. | 82 // Registers a URL scheme for which some kinds of resources bypass Content S
ecurity Policy. |
80 // This enum should be kept in sync with Source/platform/weborigin/SchemeReg
istry.h. | 83 // This enum should be kept in sync with Source/platform/weborigin/SchemeReg
istry.h. |
81 // Enforced in AssertMatchingEnums.cpp. | 84 // Enforced in AssertMatchingEnums.cpp. |
82 enum PolicyAreas : uint32_t { | 85 enum PolicyAreas : uint32_t { |
83 PolicyAreaNone = 0, | 86 PolicyAreaNone = 0, |
84 PolicyAreaImage = 1 << 0, | 87 PolicyAreaImage = 1 << 0, |
85 PolicyAreaStyle = 1 << 1, | 88 PolicyAreaStyle = 1 << 1, |
(...skipping 27 matching lines...) Expand all Loading... |
113 // by bookmarklets or javascript: URLs typed in the omnibox. | 116 // by bookmarklets or javascript: URLs typed in the omnibox. |
114 BLINK_EXPORT static void registerURLSchemeAsNotAllowingJavascriptURLs(const
WebString&); | 117 BLINK_EXPORT static void registerURLSchemeAsNotAllowingJavascriptURLs(const
WebString&); |
115 | 118 |
116 private: | 119 private: |
117 WebSecurityPolicy(); | 120 WebSecurityPolicy(); |
118 }; | 121 }; |
119 | 122 |
120 } // namespace blink | 123 } // namespace blink |
121 | 124 |
122 #endif | 125 #endif |
OLD | NEW |