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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 static URLSchemesMap& localURLSchemes() | 32 static URLSchemesMap& localURLSchemes() |
33 { | 33 { |
34 DEFINE_STATIC_LOCAL(URLSchemesMap, localSchemes, ()); | 34 DEFINE_STATIC_LOCAL(URLSchemesMap, localSchemes, ()); |
35 | 35 |
36 if (localSchemes.isEmpty()) { | 36 if (localSchemes.isEmpty()) { |
37 localSchemes.add("file"); | 37 localSchemes.add("file"); |
38 #if PLATFORM(MAC) | 38 #if PLATFORM(MAC) |
39 localSchemes.add("applewebdata"); | 39 localSchemes.add("applewebdata"); |
40 #endif | 40 #endif |
41 #if PLATFORM(QT) | |
42 localSchemes.add("qrc"); | |
43 #endif | |
44 } | 41 } |
45 | 42 |
46 return localSchemes; | 43 return localSchemes; |
47 } | 44 } |
48 | 45 |
49 static URLSchemesMap& displayIsolatedURLSchemes() | 46 static URLSchemesMap& displayIsolatedURLSchemes() |
50 { | 47 { |
51 DEFINE_STATIC_LOCAL(URLSchemesMap, displayIsolatedSchemes, ()); | 48 DEFINE_STATIC_LOCAL(URLSchemesMap, displayIsolatedSchemes, ()); |
52 return displayIsolatedSchemes; | 49 return displayIsolatedSchemes; |
53 } | 50 } |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 } | 311 } |
315 | 312 |
316 bool SchemeRegistry::schemeShouldBypassContentSecurityPolicy(const String& schem
e) | 313 bool SchemeRegistry::schemeShouldBypassContentSecurityPolicy(const String& schem
e) |
317 { | 314 { |
318 if (scheme.isEmpty()) | 315 if (scheme.isEmpty()) |
319 return false; | 316 return false; |
320 return ContentSecurityPolicyBypassingSchemes().contains(scheme); | 317 return ContentSecurityPolicyBypassingSchemes().contains(scheme); |
321 } | 318 } |
322 | 319 |
323 } // namespace WebCore | 320 } // namespace WebCore |
OLD | NEW |