Home
last modified time | relevance | path

Searched refs:mimeType (Results 1 – 25 of 170) sorted by relevance

1234567

/external/webkit/WebCore/platform/chromium/
DMimeTypeRegistryChromium.cpp60 String mimeType = type.substring(0, static_cast<unsigned>(type.find(';'))); in getPreferredExtensionForMIMEType() local
75 String mimeType = getMIMETypeForExtension(extension); in getMIMETypeForPath() local
76 if (mimeType.isEmpty()) { in getMIMETypeForPath()
79 mimeType = getPluginMimeTypeFromExtension(extension); in getMIMETypeForPath()
81 return mimeType; in getMIMETypeForPath()
84 bool MIMETypeRegistry::isSupportedImageMIMEType(const String& mimeType) in isSupportedImageMIMEType() argument
86 return ChromiumBridge::isSupportedImageMIMEType(mimeType); in isSupportedImageMIMEType()
89 bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType) in isSupportedImageResourceMIMEType() argument
91 return isSupportedImageMIMEType(mimeType); in isSupportedImageResourceMIMEType()
94 bool MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(const String& mimeType) in isSupportedImageMIMETypeForEncoding() argument
[all …]
/external/webkit/WebCore/platform/
DMIMETypeRegistry.cpp66 String mimeType = MIMETypeForImageSourceType(supportedType.get()); in initializeSupportedImageMIMETypes() local
67 if (!mimeType.isEmpty()) { in initializeSupportedImageMIMETypes()
68 supportedImageMIMETypes->add(mimeType); in initializeSupportedImageMIMETypes()
69 supportedImageResourceMIMETypes->add(mimeType); in initializeSupportedImageMIMETypes()
105 String mimeType = MIMETypeRegistry::getMIMETypeForExtension(formats.at(i).constData()); in initializeSupportedImageMIMETypes()
106 supportedImageMIMETypes->add(mimeType); in initializeSupportedImageMIMETypes()
107 supportedImageResourceMIMETypes->add(mimeType); in initializeSupportedImageMIMETypes()
163 String mimeType = MIMETypeForImageSourceType(supportedType.get()); in initializeSupportedImageMIMETypesForEncoding() local
164 if (!mimeType.isEmpty()) in initializeSupportedImageMIMETypesForEncoding()
165 supportedImageMIMETypesForEncoding->add(mimeType); in initializeSupportedImageMIMETypesForEncoding()
[all …]
DMIMETypeRegistry.h47 static bool isSupportedImageMIMEType(const String& mimeType);
51 static bool isSupportedImageResourceMIMEType(const String& mimeType);
54 static bool isSupportedImageMIMETypeForEncoding(const String& mimeType);
58 static bool isSupportedJavaScriptMIMEType(const String& mimeType);
62 static bool isSupportedNonImageMIMEType(const String& mimeType);
65 static bool isSupportedMediaMIMEType(const String& mimeType);
68 static bool isJavaAppletMIMEType(const String& mimeType);
/external/webkit/WebKit/qt/tests/qwebplugindatabase/
Dtst_qwebplugindatabase.cpp78 MimeType mimeType; in installedPlugins() local
79 mimeType.name = jsMimeType["type"].toString(); in installedPlugins()
80 mimeType.description = jsMimeType["description"].toString(); in installedPlugins()
81mimeType.fileExtensions = jsMimeType["suffixes"].toString().split(',', QString::SkipEmptyParts); in installedPlugins()
83 mimeTypes.append(mimeType); in installedPlugins()
84 QVERIFY(plugin.supportsMimeType(mimeType.name)); in installedPlugins()
181 QString mimeType = mimeTypes.at(j).name; in pluginForMimeType() local
182 pluginsMap.insert(mimeType, plugin); in pluginForMimeType()
183 QVERIFY(plugin.supportsMimeType(mimeType)); in pluginForMimeType()
192 QString mimeType = mimeTypes.at(j).name; in pluginForMimeType() local
[all …]
/external/webkit/WebCore/loader/archive/
DArchiveResource.cpp41 …e::create(PassRefPtr<SharedBuffer> data, const KURL& url, const String& mimeType, const String& te… in create() argument
43 return data ? adoptRef(new ArchiveResource(data, url, mimeType, textEncoding, frameName)) : 0; in create()
46 …e::create(PassRefPtr<SharedBuffer> data, const KURL& url, const String& mimeType, const String& te… in create() argument
48 …return data ? adoptRef(new ArchiveResource(data, url, mimeType, textEncoding, frameName, resourceR… in create()
53 , m_mimeType(response.mimeType()) in ArchiveResource()
59 …eResource(PassRefPtr<SharedBuffer> data, const KURL& url, const String& mimeType, const String& te… in ArchiveResource() argument
60 …: SubstituteResource(url, ResourceResponse(url, mimeType, data ? data->size() : 0, textEncoding, S… in ArchiveResource()
61 , m_mimeType(mimeType) in ArchiveResource()
68 …eResource(PassRefPtr<SharedBuffer> data, const KURL& url, const String& mimeType, const String& te… in ArchiveResource() argument
69 …: SubstituteResource(url, response.isNull() ? ResourceResponse(url, mimeType, data ? data->size() … in ArchiveResource()
[all …]
DArchiveResource.h41 …veResource> create(PassRefPtr<SharedBuffer>, const KURL&, const String& mimeType, const String& te…
42 …veResource> create(PassRefPtr<SharedBuffer>, const KURL&, const String& mimeType, const String& te…
44 const String& mimeType() const { return m_mimeType; } in mimeType() function
53 …ArchiveResource(PassRefPtr<SharedBuffer>, const KURL&, const String& mimeType, const String& textE…
54 …ArchiveResource(PassRefPtr<SharedBuffer>, const KURL&, const String& mimeType, const String& textE…
DArchiveFactory.cpp70 bool ArchiveFactory::isArchiveMimeType(const String& mimeType) in isArchiveMimeType() argument
72 return archiveMIMETypes().contains(mimeType); in isArchiveMimeType()
75 PassRefPtr<Archive> ArchiveFactory::create(SharedBuffer* data, const String& mimeType) in create() argument
77 RawDataCreationFunction* function = archiveMIMETypes().get(mimeType); in create()
/external/webkit/WebKitTools/DumpRenderTree/qt/
Dtestplugin.cpp45 MimeType mimeType; in plugins() local
46 mimeType.name = "testtype"; in plugins()
47 mimeType.fileExtensions.append("testsuffixes"); in plugins()
48 plugin.mimeTypes.append(mimeType); in plugins()
52 mimeType.name = "testtype2"; in plugins()
53 mimeType.fileExtensions.append("testsuffixes2"); in plugins()
54 mimeType.fileExtensions.append("testsuffixes3"); in plugins()
55 plugin.mimeTypes.append(mimeType); in plugins()
/external/webkit/WebKit/qt/Api/
Dqwebplugindatabase.cpp130 MimeType mimeType; in mimeTypes() local
131 mimeType.name = it->first; in mimeTypes()
132 mimeType.description = it->second; in mimeTypes()
135 Vector<String> extensions = d->plugin->mimeToExtensions().get(mimeType.name); in mimeTypes()
140 mimeType.fileExtensions = fileExtensions; in mimeTypes()
141 mimeTypes.append(mimeType); in mimeTypes()
153 bool QWebPluginInfo::supportsMimeType(const QString& mimeType) const in supportsMimeType()
157 if (type.name == mimeType) in supportsMimeType()
366 QWebPluginInfo QWebPluginDatabase::pluginForMimeType(const QString& mimeType) in pluginForMimeType() argument
368 return QWebPluginInfo(d->database->pluginForMIMEType(mimeType)); in pluginForMimeType()
[all …]
/external/webkit/WebCore/plugins/
DPluginDatabase.cpp60 bool PluginDatabase::isMIMETypeRegistered(const String& mimeType) in isMIMETypeRegistered() argument
62 if (mimeType.isNull()) in isMIMETypeRegistered()
64 if (m_registeredMIMETypes.contains(mimeType)) in isMIMETypeRegistered()
67 return (refresh() && m_registeredMIMETypes.contains(mimeType)); in isMIMETypeRegistered()
164 PluginPackage* PluginDatabase::pluginForMIMEType(const String& mimeType) in pluginForMIMEType() argument
166 if (mimeType.isEmpty()) in pluginForMIMEType()
169 String key = mimeType.lower(); in pluginForMIMEType()
204 String mimeType; in MIMETypeForExtension() local
215 mimeType = mime_it->first; in MIMETypeForExtension()
216 PluginPackage* preferredPlugin = m_preferredPlugins.get(mimeType).get(); in MIMETypeForExtension()
[all …]
DPluginInfoStore.cpp78 String PluginInfoStore::pluginNameForMIMEType(const String& mimeType) in pluginNameForMIMEType() argument
80 String mimeTypeCopy(mimeType); in pluginNameForMIMEType()
83 ASSERT(mimeType == mimeTypeCopy); in pluginNameForMIMEType()
92 bool PluginInfoStore::supportsMIMEType(const WebCore::String& mimeType) in supportsMIMEType() argument
94 return PluginDatabase::installedPlugins()->isMIMETypeRegistered(mimeType); in supportsMIMEType()
DPluginData.cpp47 bool PluginData::supportsMimeType(const String& mimeType) const in supportsMimeType()
50 if (m_mimes[i]->type == mimeType) in supportsMimeType()
55 String PluginData::pluginNameForMimeType(const String& mimeType) const in pluginNameForMimeType()
58 if (m_mimes[i]->type == mimeType) in pluginNameForMimeType()
DPluginDatabase.h65 bool isMIMETypeRegistered(const String& mimeType);
71 PluginPackage* findPlugin(const KURL&, String& mimeType);
72 PluginPackage* pluginForMIMEType(const String& mimeType);
73 void setPreferredPluginForMIMEType(const String& mimeType, PluginPackage* plugin);
/external/webkit/WebKit/win/
DWebURLResponse.cpp295 /* [in] */ BSTR mimeType, in initWithURL() argument
299 …m_response = ResourceResponse(MarshallingHelpers::BSTRToKURL(url), String(mimeType), expectedConte… in initWithURL()
306 BString mimeType(m_response.mimeType()); in MIMEType() local
307 *result = mimeType.release(); in MIMEType()
308 if (!m_response.mimeType().isNull() && !*result) in MIMEType()
431 if (m_response.mimeType().isEmpty()) in suggestedFileExtension()
434 BString mimeType(m_response.mimeType()); in suggestedFileExtension() local
439 err = RegOpenKeyEx(key, mimeType, 0, KEY_QUERY_VALUE, &subKey); in suggestedFileExtension()
449 if (!_tcscmp(mimeType, TEXT("text/html"))) { in suggestedFileExtension()
452 } else if (!_tcscmp(mimeType, TEXT("application/xhtml+xml"))) { in suggestedFileExtension()
[all …]
DWebResource.cpp41 WebResource::WebResource(IStream* data, const WebCore::KURL& url, const WebCore::String& mimeType, … in WebResource() argument
45 , m_mimeType(mimeType) in WebResource()
63 …WebResource* instance = new WebResource(memoryStream.get(), response.url(), response.mimeType(), r… in createInstance()
103 /* [in] */ BSTR mimeType, in initWithData() argument
109 m_mimeType = String(mimeType); in initWithData()
/external/webkit/WebCore/dom/
DDOMImplementation.cpp288 bool DOMImplementation::isXMLMIMEType(const String& mimeType) in isXMLMIMEType() argument
290 if (mimeType == "text/xml" || mimeType == "application/xml" || mimeType == "text/xsl") in isXMLMIMEType()
294 return xmlTypeRegExp.match(mimeType) > -1; in isXMLMIMEType()
297 bool DOMImplementation::isTextMIMEType(const String& mimeType) in isTextMIMEType() argument
299 if (MIMETypeRegistry::isSupportedJavaScriptMIMEType(mimeType) || in isTextMIMEType()
300 (mimeType.startsWith("text/") && mimeType != "text/html" && in isTextMIMEType()
301 mimeType != "text/xml" && mimeType != "text/xsl")) in isTextMIMEType()
/external/opencore/protocols/sdp/parser/src/
Dsdp_info.cpp73 const char *mimeType = srcMediaInfoVect[ss]->getMIMEType(); in SDPInfo() local
76 …if (!oscl_strncmp(mimeType, "AAC", oscl_strlen("AAC")) || !oscl_strncmp(mimeType, "MP4A-LATM", osc… in SDPInfo()
84 else if (!oscl_strncmp(mimeType, "AMR", oscl_strlen("AMR"))) in SDPInfo()
92 else if (!oscl_strncmp(mimeType, "MP4V-ES", oscl_strlen("MP4V-ES"))) in SDPInfo()
100 …else if (!oscl_strncmp(mimeType, "H263-1998", oscl_strlen("H263-1998")) || !oscl_strncmp(mimeType,… in SDPInfo()
108 else if (!oscl_strncmp(mimeType, "PVMP4V-ES", oscl_strlen("PVMP4V-ES"))) in SDPInfo()
116 else if (!oscl_strncmp(mimeType, "mpeg4-generic", oscl_strlen("mpeg4-generic"))) in SDPInfo()
124 else if (!oscl_strncmp(mimeType, "X-MP4V-IMAGE", oscl_strlen("X-MP4V-IMAGE"))) in SDPInfo()
133 …else if (!oscl_strncmp(mimeType, "x-pn-realaudio", oscl_strlen("x-pn-realaudio")) || !oscl_strncmp… in SDPInfo()
/external/webkit/WebCore/loader/
DMainResourceLoader.cpp197 const String& mimeType = r.mimeType(); in continueAfterContentPolicy() local
202 …bool isRemoteWebArchive = equalIgnoringCase("application/x-webarchive", mimeType) && !m_substitute… in continueAfterContentPolicy()
203 if (!frameLoader()->canShowMIMEType(mimeType) || isRemoteWebArchive) { in continueAfterContentPolicy()
301 frameLoader()->setupForReplaceByMIMEType(r.mimeType()); in didReceiveResponse()
319 frameLoader()->checkContentPolicy(m_response.mimeType(), callContinueAfterContentPolicy, this); in didReceiveResponse()
397 String mimeType; in handleEmptyLoad() local
399 mimeType = frameLoader()->generatedMIMETypeForURLScheme(url.protocol()); in handleEmptyLoad()
401 mimeType = "text/html"; in handleEmptyLoad()
403 ResourceResponse response(url, mimeType, 0, String(), String()); in handleEmptyLoad()
415 …ResourceResponse response(url, m_substituteData.mimeType(), m_substituteData.content()->size(), m_… in handleDataLoadNow()
DTextResourceDecoder.h43 …static PassRefPtr<TextResourceDecoder> create(const String& mimeType, const TextEncoding& defaultE…
45 return adoptRef(new TextResourceDecoder(mimeType, defaultEncoding, usesEncodingDetector));
67 TextResourceDecoder(const String& mimeType, const TextEncoding& defaultEncoding,
71 static ContentType determineContentType(const String& mimeType);
DCrossOriginAccessControl.cpp50 String mimeType = extractMIMETypeFromMediaType(value); in isOnAccessControlSimpleRequestHeaderWhitelist() local
51 return equalIgnoringCase(mimeType, "application/x-www-form-urlencoded") in isOnAccessControlSimpleRequestHeaderWhitelist()
52 || equalIgnoringCase(mimeType, "multipart/form-data") in isOnAccessControlSimpleRequestHeaderWhitelist()
53 || equalIgnoringCase(mimeType, "text/plain"); in isOnAccessControlSimpleRequestHeaderWhitelist()
/external/webkit/WebKitTools/Scripts/
Dsvn-create-patch172 my $mimeType = <PROPGET>;
175 if ($mimeType) {
176 $mimeType =~ s/[\r\n]+$//g;
178 return $mimeType;
324 my $mimeType = findMimeType($file);
325 return 0 if (!$mimeType || substr($mimeType, 0, 5) eq "text/");
341 my $mimeType = findMimeType($file, $sourceRevision);
342 print "svn:mime-type = ${mimeType}\n\n";
/external/webkit/WebCore/platform/graphics/cg/
DImageBufferCG.cpp228 static RetainPtr<CFStringRef> utiFromMIMEType(const String& mimeType) in utiFromMIMEType() argument
231 RetainPtr<CFStringRef> mimeTypeCFString(AdoptCF, mimeType.createCFString()); in utiFromMIMEType()
240 if (equalIgnoringCase(mimeType, "image/png")) in utiFromMIMEType()
242 if (equalIgnoringCase(mimeType, "image/jpeg")) in utiFromMIMEType()
244 if (equalIgnoringCase(mimeType, "image/gif")) in utiFromMIMEType()
252 String ImageBuffer::toDataURL(const String& mimeType) const in toDataURL()
254 ASSERT(MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(mimeType)); in toDataURL()
276 utiFromMIMEType(mimeType).get(), 1, 0)); in toDataURL()
290 return String::format("data:%s;base64,%s", mimeType.utf8().data(), out.data()); in toDataURL()
/external/webkit/WebCore/platform/network/
DHTTPParsers.cpp152 Vector<UChar, 64> mimeType; in extractMIMETypeFromMediaType() local
154 mimeType.reserveCapacity(length); in extractMIMETypeFromMediaType()
177 mimeType.append(c); in extractMIMETypeFromMediaType()
180 if (mimeType.size() == length) in extractMIMETypeFromMediaType()
182 return String(mimeType.data(), mimeType.size()); in extractMIMETypeFromMediaType()
/external/webkit/WebCore/plugins/mac/
DPluginPackageMac.cpp49 void PluginPackage::determineQuirks(const String& mimeType) in determineQuirks() argument
51 if (MIMETypeRegistry::isJavaAppletMIMEType(mimeType)) { in determineQuirks()
61 if (mimeType == "application/x-shockwave-flash") { in determineQuirks()
174 String mimeType = (CFStringRef)keys[i]; in fetchInfo() local
175 mimeType = mimeType.lower(); in fetchInfo()
196 m_mimeToExtensions.set(mimeType, mimeExtensions); in fetchInfo()
199 m_mimeToDescriptions.set(mimeType, description); in fetchInfo()
/external/opencore/fileformats/mp4/parser/src/
Dsampledescriptionatom.cpp827 OSCL_HeapString<OsclMemAllocator> mimeType; in getMIMEType() local
829 mimeType.set(PVMF_MIME_FORMAT_UNKNOWN, oscl_strlen(PVMF_MIME_FORMAT_UNKNOWN)); in getMIMEType()
833 mimeType.set(PVMF_MIME_AMR, oscl_strlen(PVMF_MIME_AMR)); in getMIMEType()
837 mimeType.set(PVMF_MIME_AMR_IETF, oscl_strlen(PVMF_MIME_AMR_IETF)); in getMIMEType()
841 mimeType.set(PVMF_MIME_AMRWB_IETF, oscl_strlen(PVMF_MIME_AMRWB_IETF)); in getMIMEType()
845 mimeType.set(PVMF_MIME_MPEG4_AUDIO, oscl_strlen(PVMF_MIME_MPEG4_AUDIO)); in getMIMEType()
849 mimeType.set(_STRLIT_CHAR(PVMF_MIME_MPEG4_AUDIO), oscl_strlen(PVMF_MIME_MPEG4_AUDIO)); in getMIMEType()
853 mimeType.set(PVMF_MIME_M4V, oscl_strlen(PVMF_MIME_M4V)); in getMIMEType()
857 mimeType.set(PVMF_MIME_H2632000, oscl_strlen(PVMF_MIME_H2632000)); in getMIMEType()
861 mimeType.set(PVMF_MIME_H264_VIDEO_MP4, oscl_strlen(PVMF_MIME_H264_VIDEO_MP4)); in getMIMEType()
[all …]

1234567