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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 return schemesWithUniqueOrigins().contains(scheme); | 124 return schemesWithUniqueOrigins().contains(scheme); |
125 } | 125 } |
126 | 126 |
127 void SchemeRegistry::registerURLSchemeAsDisplayIsolated(const String& scheme) | 127 void SchemeRegistry::registerURLSchemeAsDisplayIsolated(const String& scheme) |
128 { | 128 { |
129 displayIsolatedURLSchemes().add(scheme); | 129 displayIsolatedURLSchemes().add(scheme); |
130 } | 130 } |
131 | 131 |
132 bool SchemeRegistry::shouldTreatURLSchemeAsDisplayIsolated(const String& scheme) | 132 bool SchemeRegistry::shouldTreatURLSchemeAsDisplayIsolated(const String& scheme) |
133 { | 133 { |
| 134 if (scheme.isEmpty()) |
| 135 return false; |
134 return displayIsolatedURLSchemes().contains(scheme); | 136 return displayIsolatedURLSchemes().contains(scheme); |
135 } | 137 } |
136 | 138 |
137 void SchemeRegistry::registerURLSchemeAsSecure(const String& scheme) | 139 void SchemeRegistry::registerURLSchemeAsSecure(const String& scheme) |
138 { | 140 { |
139 secureSchemes().add(scheme); | 141 secureSchemes().add(scheme); |
140 } | 142 } |
141 | 143 |
142 bool SchemeRegistry::shouldTreatURLSchemeAsSecure(const String& scheme) | 144 bool SchemeRegistry::shouldTreatURLSchemeAsSecure(const String& scheme) |
143 { | 145 { |
144 return secureSchemes().contains(scheme); | 146 return secureSchemes().contains(scheme); |
145 } | 147 } |
146 | 148 |
147 void SchemeRegistry::registerURLSchemeAsEmptyDocument(const String& scheme) | 149 void SchemeRegistry::registerURLSchemeAsEmptyDocument(const String& scheme) |
148 { | 150 { |
149 emptyDocumentSchemes().add(scheme); | 151 emptyDocumentSchemes().add(scheme); |
150 } | 152 } |
151 | 153 |
152 bool SchemeRegistry::shouldLoadURLSchemeAsEmptyDocument(const String& scheme) | 154 bool SchemeRegistry::shouldLoadURLSchemeAsEmptyDocument(const String& scheme) |
153 { | 155 { |
154 return emptyDocumentSchemes().contains(scheme); | 156 return emptyDocumentSchemes().contains(scheme); |
155 } | 157 } |
156 | 158 |
157 } // namespace WebCore | 159 } // namespace WebCore |
OLD | NEW |