| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2008, 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 { | 128 { |
| 129 // Since this set is very limited and is likely to remain so we won't bother
with the overhead | 129 // Since this set is very limited and is likely to remain so we won't bother
with the overhead |
| 130 // of using a hash set. | 130 // of using a hash set. |
| 131 // Any of the MIME types below may be followed by any number of specific ver
sions of the JVM, | 131 // Any of the MIME types below may be followed by any number of specific ver
sions of the JVM, |
| 132 // which is why we use startsWith() | 132 // which is why we use startsWith() |
| 133 return mimeType.startsWith("application/x-java-applet", false) | 133 return mimeType.startsWith("application/x-java-applet", false) |
| 134 || mimeType.startsWith("application/x-java-bean", false) | 134 || mimeType.startsWith("application/x-java-bean", false) |
| 135 || mimeType.startsWith("application/x-java-vm", false); | 135 || mimeType.startsWith("application/x-java-vm", false); |
| 136 } | 136 } |
| 137 | 137 |
| 138 String MIMETypeRegistry::getMediaMIMETypeForExtension(const String&) | |
| 139 { | |
| 140 return String(); | |
| 141 } | |
| 142 | |
| 143 bool MIMETypeRegistry::isApplicationPluginMIMEType(const String&) | |
| 144 { | |
| 145 return false; | |
| 146 } | |
| 147 | |
| 148 static HashSet<String>& dummyHashSet() | |
| 149 { | |
| 150 ASSERT_NOT_REACHED(); | |
| 151 DEFINE_STATIC_LOCAL(HashSet<String>, dummy, ()); | |
| 152 return dummy; | |
| 153 } | |
| 154 | |
| 155 // NOTE: the following methods should never be reached | |
| 156 HashSet<String>& MIMETypeRegistry::getSupportedImageMIMETypes() { return dummyHa
shSet(); } | |
| 157 HashSet<String>& MIMETypeRegistry::getSupportedImageResourceMIMETypes() { return
dummyHashSet(); } | |
| 158 HashSet<String>& MIMETypeRegistry::getSupportedImageMIMETypesForEncoding() { ret
urn dummyHashSet(); } | |
| 159 HashSet<String>& MIMETypeRegistry::getSupportedNonImageMIMETypes() { return dumm
yHashSet(); } | |
| 160 HashSet<String>& MIMETypeRegistry::getSupportedMediaMIMETypes() { return dummyHa
shSet(); } | |
| 161 | |
| 162 } // namespace WebCore | 138 } // namespace WebCore |
| OLD | NEW |