Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: Source/WebCore/platform/SchemeRegistry.cpp

Issue 13529026: Removing a bunch of unused platform code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix whitespace and compiler error on Mac. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/WebCore/platform/RunLoop.cpp ('k') | Source/WebCore/platform/ScrollAnimatorNone.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/platform/RunLoop.cpp ('k') | Source/WebCore/platform/ScrollAnimatorNone.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698