/external/webkit/Source/WebCore/platform/chromium/ |
H A D | MIMETypeRegistryChromium.cpp | 67 String mimeType = type.substring(0, static_cast<unsigned>(type.find(';'))); local 82 String mimeType = getMIMETypeForExtension(extension); local 83 if (mimeType.isEmpty()) { 86 mimeType = getPluginMimeTypeFromExtension(extension); 88 if (mimeType.isEmpty()) 90 return mimeType; 93 bool MIMETypeRegistry::isSupportedImageMIMEType(const String& mimeType) argument 95 return PlatformBridge::isSupportedImageMIMEType(mimeType); 98 bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType) argument 100 return isSupportedImageMIMEType(mimeType); 103 isSupportedImageMIMETypeForEncoding(const String& mimeType) argument 108 isSupportedJavaScriptMIMEType(const String& mimeType) argument 113 isSupportedNonImageMIMEType(const String& mimeType) argument 118 isSupportedMediaMIMEType(const String& mimeType) argument 127 isJavaAppletMIMEType(const String& mimeType) argument [all...] |
/external/webkit/Tools/DumpRenderTree/qt/ |
H A D | testplugin.cpp | 45 MimeType mimeType; local 46 mimeType.name = "testtype"; 47 mimeType.fileExtensions.append("testsuffixes"); 48 plugin.mimeTypes.append(mimeType); 52 mimeType.name = "testtype2"; 53 mimeType.fileExtensions.append("testsuffixes2"); 54 mimeType.fileExtensions.append("testsuffixes3"); 55 plugin.mimeTypes.append(mimeType);
|
/external/webkit/Source/WebCore/platform/qt/ |
H A D | MIMETypeRegistryQt.cpp | 39 const char* mimeType; member in struct:WebCore::ExtensionMap 83 return e->mimeType; 90 bool MIMETypeRegistry::isApplicationPluginMIMEType(const String& mimeType) argument 92 return mimeType.startsWith("application/x-qt-plugin", false) 93 || mimeType.startsWith("application/x-qt-styled-widget", false);
|
/external/webkit/Source/WebKit/chromium/public/ |
H A D | WebMimeRegistry.h | 44 virtual SupportsType supportsMIMEType(const WebString& mimeType) = 0; 45 virtual SupportsType supportsImageMIMEType(const WebString& mimeType) = 0; 46 virtual SupportsType supportsJavaScriptMIMEType(const WebString& mimeType) = 0; 47 virtual SupportsType supportsMediaMIMEType(const WebString& mimeType, 49 virtual SupportsType supportsNonImageMIMEType(const WebString& mimeType) = 0; 53 virtual WebString preferredExtensionForMIMEType(const WebString& mimeType) = 0;
|
H A D | WebPluginParams.h | 42 WebString mimeType; member in struct:WebKit::WebPluginParams
|
/external/webkit/Source/WebCore/platform/ |
H A D | MIMETypeRegistry.h | 51 static bool isSupportedImageMIMEType(const String& mimeType); 55 static bool isSupportedImageResourceMIMEType(const String& mimeType); 58 static bool isSupportedImageMIMETypeForEncoding(const String& mimeType); 62 static bool isSupportedJavaScriptMIMEType(const String& mimeType); 66 static bool isSupportedNonImageMIMEType(const String& mimeType); 69 static bool isSupportedMediaMIMEType(const String& mimeType); 73 static bool isUnsupportedTextMIMEType(const String& mimeType); 76 static bool isJavaAppletMIMEType(const String& mimeType); 80 static bool isApplicationPluginMIMEType(const String& mimeType);
|
H A D | MIMETypeRegistry.cpp | 69 String mimeType = MIMETypeForImageSourceType(supportedType.get()); local 70 if (!mimeType.isEmpty()) { 71 supportedImageMIMETypes->add(mimeType); 72 supportedImageResourceMIMETypes->add(mimeType); 108 String mimeType = MIMETypeRegistry::getMIMETypeForExtension(formats.at(i).constData()); 109 if (!mimeType.isEmpty()) { 110 supportedImageMIMETypes->add(mimeType); 111 supportedImageResourceMIMETypes->add(mimeType); 166 String mimeType = MIMETypeForImageSourceType(supportedType.get()); local 167 if (!mimeType 180 String mimeType = MIMETypeRegistry::getMIMETypeForExtension(formats.at(i).constData()); local 472 isSupportedImageMIMEType(const String& mimeType) argument 481 isSupportedImageResourceMIMEType(const String& mimeType) argument 490 isSupportedImageMIMETypeForEncoding(const String& mimeType) argument 501 isSupportedJavaScriptMIMEType(const String& mimeType) argument 510 isSupportedNonImageMIMEType(const String& mimeType) argument 519 isSupportedMediaMIMEType(const String& mimeType) argument 528 isUnsupportedTextMIMEType(const String& mimeType) argument 537 isJavaAppletMIMEType(const String& mimeType) argument [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowMimeTypeMap.java | 51 public String getExtensionFromMimeType(String mimeType) { argument 52 if (mimeTypeToExtensionMap.containsKey(mimeType)) 53 return mimeTypeToExtensionMap.get(mimeType); 58 public void addExtensionMimeTypMapping(String extension, String mimeType) { argument 59 extensionToMimeTypeMap.put(extension, mimeType); 60 mimeTypeToExtensionMap.put(mimeType, extension); 74 public boolean hasMimeType(String mimeType) { argument 75 return mimeTypeToExtensionMap.containsKey(mimeType);
|
H A D | ShadowWebView.java | 49 public void loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl) { argument 50 lastLoadDataWithBaseURL = new LoadDataWithBaseURL(baseUrl, data, mimeType, encoding, historyUrl); 54 public void loadData(String data, String mimeType, String encoding) { argument 55 lastLoadData = new LoadData(data, mimeType, encoding); 217 public final String mimeType; field in class:ShadowWebView.LoadDataWithBaseURL 221 public LoadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl) { argument 224 this.mimeType = mimeType; 232 public final String mimeType; field in class:ShadowWebView.LoadData 235 public LoadData(String data, String mimeType, Strin argument [all...] |
/external/webkit/Source/WebCore/loader/archive/ |
H A D | ArchiveResource.cpp | 36 inline ArchiveResource::ArchiveResource(PassRefPtr<SharedBuffer> data, const KURL& url, const String& mimeType, const String& textEncoding, const String& frameName, const ResourceResponse& response) argument 38 , m_mimeType(mimeType) 45 PassRefPtr<ArchiveResource> ArchiveResource::create(PassRefPtr<SharedBuffer> data, const KURL& url, const String& mimeType, const String& textEncoding, const String& frameName, const ResourceResponse& response) argument 51 return adoptRef(new ArchiveResource(data, url, mimeType, textEncoding, frameName, 52 ResourceResponse(url, mimeType, dataSize, textEncoding, String()))); 54 return adoptRef(new ArchiveResource(data, url, mimeType, textEncoding, frameName, response)); 59 return create(data, url, response.mimeType(), response.textEncodingName(), String(), response);
|
H A D | ArchiveFactory.cpp | 75 bool ArchiveFactory::isArchiveMimeType(const String& mimeType) argument 77 return !mimeType.isEmpty() && archiveMIMETypes().contains(mimeType); 80 PassRefPtr<Archive> ArchiveFactory::create(SharedBuffer* data, const String& mimeType) argument 82 RawDataCreationFunction* function = mimeType.isEmpty() ? 0 : archiveMIMETypes().get(mimeType);
|
H A D | ArchiveResource.h | 40 const String& mimeType, const String& textEncoding, const String& frameName, 43 const String& mimeType() const { return m_mimeType; } function in class:WebCore::ArchiveResource 51 ArchiveResource(PassRefPtr<SharedBuffer>, const KURL&, const String& mimeType, const String& textEncoding, const String& frameName, const ResourceResponse&);
|
/external/webkit/Source/WebCore/inspector/front-end/ |
H A D | SourceTokenizer.js | 85 getTokenizer: function(mimeType) 87 if (!this._tokenizerConstructors[mimeType]) 89 var tokenizerClass = this._tokenizerConstructors[mimeType]; 93 this._tokenizers[mimeType] = tokenizer;
|
/external/webkit/Source/WebCore/platform/brew/ |
H A D | MIMETypeRegistryBrew.cpp | 40 const char* mimeType; member in struct:WebCore::ExtensionMap 75 return e->mimeType;
|
/external/webkit/Source/WebCore/platform/efl/ |
H A D | MIMETypeRegistryEfl.cpp | 41 const char* mimeType; member in struct:WebCore::ExtensionMap 84 return e->mimeType;
|
/external/webkit/Source/WebCore/platform/gtk/ |
H A D | MIMETypeRegistryGtk.cpp | 38 const char* mimeType; member in struct:WebCore::ExtensionMap 74 return e->mimeType;
|
/external/webkit/Source/WebCore/platform/wx/ |
H A D | MimeTypeRegistryWx.cpp | 38 const char* mimeType; member in struct:WebCore::ExtensionMap 71 return e->mimeType;
|
/external/webkit/Source/WebCore/platform/network/ |
H A D | MIMESniffing.cpp | 159 const char* mimeType; member in struct:__anon15929::MagicNumbers 164 #define MAGIC_NUMBERS_MASKED(pattern, mask, mimeType, flags) {(pattern), (mask), (mimeType), sizeof(pattern) - 1, (flags)} 165 #define MAGIC_NUMBERS_SIMPLE(pattern, mimeType) {(pattern), 0, (mimeType), sizeof(pattern) - 1, 0} 291 return types[i].mimeType; 303 return types[i].mimeType; 311 if (!strcmp(type, types[i].mimeType)) 320 const char* mimeType = 0; local 322 mimeType 350 const char* mimeType = 0; local [all...] |
/external/webkit/Source/WebCore/platform/graphics/gtk/ |
H A D | ImageBufferGtk.cpp | 35 String ImageBuffer::toDataURL(const String& mimeType, const double* quality) const argument 37 ASSERT(MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(mimeType)); 39 if (!mimeType.startsWith("image/")) 44 String type = mimeType.substring(sizeof "image"); 70 return makeString("data:", mimeType, ";base64,", out);
|
/external/webkit/Source/WebCore/loader/ |
H A D | SubstituteData.h | 41 SubstituteData(PassRefPtr<SharedBuffer> content, const String& mimeType, const String& textEncoding, const KURL& failingURL, const KURL& responseURL = KURL()) argument 43 , m_mimeType(mimeType) 53 const String& mimeType() const { return m_mimeType; } function in class:WebCore::SubstituteData
|
/external/webkit/Source/WebKit/android/jni/ |
H A D | MIMETypeRegistryAndroid.cpp | 54 jobject mimeType = env->CallStaticObjectMethod(mimeClass, local 56 String result = android::jstringToWtfString(env, (jstring) mimeType); 59 env->DeleteLocalRef(mimeType);
|
/external/webkit/Source/WebKit/qt/Api/ |
H A D | qwebplugindatabase.cpp | 124 MimeType mimeType; local 125 mimeType.name = it->first; 126 mimeType.description = it->second; 129 Vector<String> extensions = m_package->mimeToExtensions().get(mimeType.name); 134 mimeType.fileExtensions = fileExtensions; 135 m_mimeTypes.append(mimeType); 143 Returns true if the plugin supports a specific \a mimeType; otherwise 148 bool QWebPluginInfo::supportsMimeType(const QString& mimeType) const 152 return m_package->mimeToDescriptions().contains(mimeType); 373 Returns the plugin that is currently used by WebKit for a given \a mimeType 377 pluginForMimeType(const QString& mimeType) argument 390 setPreferredPluginForMimeType(const QString& mimeType, const QWebPluginInfo& plugin) argument [all...] |
/external/webkit/Source/WebKit/qt/tests/qwebplugindatabase/ |
H A D | tst_qwebplugindatabase.cpp | 80 MimeType mimeType; local 81 mimeType.name = jsMimeType["type"].toString(); 82 mimeType.description = jsMimeType["description"].toString(); 83 mimeType.fileExtensions = jsMimeType["suffixes"].toString().split(',', QString::SkipEmptyParts); 85 mimeTypes.append(mimeType); 86 QVERIFY(plugin.supportsMimeType(mimeType.name)); 183 QString mimeType = mimeTypes.at(j).name; local 184 pluginsMap.insert(mimeType, plugin); 185 QVERIFY(plugin.supportsMimeType(mimeType)); 194 QString mimeType local 224 QString mimeType = mimeTypes.at(j).name; local 232 QString mimeType = it.key(); local 314 QString mimeType = mimeTypes.at(j).name; local 321 QString mimeType = it.key(); local [all...] |
/external/webkit/Source/WebCore/platform/network/android/ |
H A D | ResourceResponse.h | 39 ResourceResponse(const KURL& url, const String& mimeType, long long expectedLength, const String& textEncodingName, const String& filename) argument 40 : ResourceResponseBase(url, mimeType, expectedLength, textEncodingName, filename) { }
|
/external/webkit/Source/WebCore/platform/network/curl/ |
H A D | ResourceResponse.h | 42 ResourceResponse(const KURL& url, const String& mimeType, long long expectedLength, const String& textEncodingName, const String& filename) argument 43 : ResourceResponseBase(url, mimeType, expectedLength, textEncodingName, filename),
|