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

Side by Side Diff: Source/core/platform/chromium/MIMETypeRegistryChromium.cpp

Issue 21929002: Remove unused, unimplemented and no-op methods from MIMETypeRegistry. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/core/platform/MIMETypeRegistry.h ('k') | no next file » | 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) 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
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
OLDNEW
« no previous file with comments | « Source/core/platform/MIMETypeRegistry.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698