Searched refs:mimeType (Results 1 - 25 of 271) sorted by relevance

1234567891011

/macosx-10.10/WebCore-7600.1.25/platform/network/ios/
H A DWebCoreURLResponseIOS.h43 inline bool shouldUseQuickLookForMIMEType(const WTF::String& mimeType) argument
45 if ((!MIMETypeRegistry::isSupportedNonImageMIMEType(mimeType) // ignore supported non-image MIME types
46 && !MIMETypeRegistry::isSupportedImageMIMEType(mimeType) // ignore supported image MIME types
47 && mimeType != "text/css" // ignore css
48 && mimeType != "application/pdf" // ignore pdf
50 || mimeType == "text/plain" // but keep text/plain which is too generic and can hide something
51 || (mimeType == "text/xml" || mimeType == "application/xml")) // and keep XML types for .mobileconfig files
/macosx-10.10/WebKit-7600.1.25/ios/WebCoreSupport/
H A DWebMIMETypeRegistry.mm41 + (NSString *)preferredExtensionForMIMEType:(NSString *)mimeType
43 return MIMETypeRegistry::getPreferredExtensionForMIMEType(mimeType);
46 + (BOOL)isSupportedImageMIMEType:(NSString *)mimeType
48 return MIMETypeRegistry::isSupportedImageMIMEType(mimeType);
51 + (BOOL)isSupportedMediaMIMEType:(NSString *)mimeType
53 return MIMETypeRegistry::isSupportedMediaMIMEType(mimeType);
H A DWebMIMETypeRegistry.h34 + (NSString *)preferredExtensionForMIMEType:(NSString *)mimeType;
38 + (BOOL)isSupportedImageMIMEType:(NSString *)mimeType;
41 + (BOOL)isSupportedMediaMIMEType:(NSString *)mimeType;
/macosx-10.10/WebInspectorUI-7600.1.17/UserInterface/Views/
H A DSyntaxHighlightingSupport.js28 WebInspector.syntaxHighlightStringAsDocumentFragment = function(string, mimeType, baseURL)
46 mimeType = parseMIMEType(mimeType).type;
48 CodeMirror.runMode(string, mimeType, appendText);
/macosx-10.10/WebCore-7600.1.25/platform/
H A DMIMETypeRegistry.h49 static bool isSupportedImageMIMEType(const String& mimeType);
53 static bool isSupportedImageResourceMIMEType(const String& mimeType);
56 static bool isSupportedImageMIMETypeForEncoding(const String& mimeType);
60 static bool isSupportedJavaScriptMIMEType(const String& mimeType);
64 static bool isSupportedNonImageMIMEType(const String& mimeType);
67 static bool isSupportedMediaMIMEType(const String& mimeType);
71 static bool isUnsupportedTextMIMEType(const String& mimeType);
74 static bool isJavaAppletMIMEType(const String& mimeType);
78 static bool isApplicationPluginMIMEType(const String& mimeType);
81 static bool isPDFOrPostScriptMIMEType(const String& mimeType);
[all...]
H A DMIMETypeRegistry.cpp161 String mimeType = MIMETypeForImageSourceType(supportedType); local
162 if (!mimeType.isEmpty()) {
163 supportedImageMIMETypes->add(mimeType);
164 supportedImageResourceMIMETypes->add(mimeType);
253 String mimeType = MIMETypeForImageSourceType(supportedType); local
254 if (!mimeType.isEmpty())
255 supportedImageMIMETypesForEncoding->add(mimeType);
479 bool MIMETypeRegistry::isSupportedImageMIMEType(const String& mimeType) argument
481 if (mimeType.isEmpty())
485 return supportedImageMIMETypes->contains(getNormalizedMIMEType(mimeType));
488 isSupportedImageResourceMIMEType(const String& mimeType) argument
497 isSupportedImageMIMETypeForEncoding(const String& mimeType) argument
508 isSupportedJavaScriptMIMEType(const String& mimeType) argument
517 isSupportedNonImageMIMEType(const String& mimeType) argument
526 isSupportedMediaMIMEType(const String& mimeType) argument
535 isUnsupportedTextMIMEType(const String& mimeType) argument
544 isJavaAppletMIMEType(const String& mimeType) argument
555 isPDFOrPostScriptMIMEType(const String& mimeType) argument
564 isPDFMIMEType(const String& mimeType) argument
573 canShowMIMEType(const String& mimeType) argument
648 getNormalizedMIMEType(const String& mimeType) argument
714 getNormalizedMIMEType(const String& mimeType) argument
[all...]
/macosx-10.10/WebCore-7600.1.25/Modules/encryptedmedia/
H A DCDMPrivateMediaPlayer.cpp48 bool CDMPrivateMediaPlayer::supportsKeySystemAndMimeType(const String& keySystem, const String& mimeType) argument
50 return MediaPlayer::supportsKeySystem(keySystem, mimeType);
53 bool CDMPrivateMediaPlayer::supportsMIMEType(const String& mimeType) argument
55 return MediaPlayer::supportsKeySystem(m_cdm->keySystem(), mimeType);
/macosx-10.10/WebKit2-7600.1.25/WebProcess/WebCoreSupport/
H A DWebPlugInClient.cpp50 bool WebPlugInClient::shouldAutoStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType) argument
52 return WebProcess::shared().shouldPlugInAutoStartFromOrigin(m_page, pageOrigin, pluginOrigin, mimeType);
55 void WebPlugInClient::didStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType, WebCore::SessionID sessionID) argument
57 WebProcess::shared().plugInDidStartFromOrigin(pageOrigin, pluginOrigin, mimeType, sessionID);
H A DWebPlugInClient.h42 virtual bool shouldAutoStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType);
43 virtual void didStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType, WebCore::SessionID);
/macosx-10.10/WebCore-7600.1.25/loader/archive/
H A DArchiveFactory.cpp81 bool ArchiveFactory::isArchiveMimeType(const String& mimeType) argument
83 return !mimeType.isEmpty() && archiveMIMETypes().contains(mimeType);
86 PassRefPtr<Archive> ArchiveFactory::create(const URL& url, SharedBuffer* data, const String& mimeType) argument
88 RawDataCreationFunction* function = mimeType.isEmpty() ? 0 : archiveMIMETypes().get(mimeType);
96 for (const auto& mimeType : archiveMIMETypes().keys())
97 mimeTypes.add(mimeType);
H A DArchiveResource.cpp36 inline ArchiveResource::ArchiveResource(PassRefPtr<SharedBuffer> data, const URL& 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 URL& 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 DArchiveResource.h40 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 URL&, const String& mimeType, const String& textEncoding, const String& frameName, const ResourceResponse&);
/macosx-10.10/WebCore-7600.1.25/page/
H A DPlugInClient.h37 virtual bool shouldAutoStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType) = 0;
38 virtual void didStartFromOrigin(const String& pageOrigin, const String& pluginOrigin, const String& mimeType, SessionID) = 0;
/macosx-10.10/WebCore-7600.1.25/plugins/
H A DPluginData.cpp45 bool PluginData::supportsMimeType(const String& mimeType, const AllowedPluginTypes allowedPluginTypes) const argument
48 if (m_mimes[i].type == mimeType && (allowedPluginTypes == AllPlugins || m_plugins[m_mimePluginIndices[i]].isApplicationPlugin))
54 const PluginInfo* PluginData::pluginInfoForMimeType(const String& mimeType) const
59 if (info.type == mimeType)
66 String PluginData::pluginNameForMimeType(const String& mimeType) const
68 if (const PluginInfo* info = pluginInfoForMimeType(mimeType))
73 String PluginData::pluginFileForMimeType(const String& mimeType) const
75 if (const PluginInfo* info = pluginInfoForMimeType(mimeType))
/macosx-10.10/WebCore-7600.1.25/loader/mac/
H A DLoaderNSURLExtras.mm52 NSString *suggestedFilenameWithMIMEType(NSURL *url, const String& mimeType)
75 if ((mimeType == "application/tar" || mimeType == "application/x-tar")
83 if (mimeType != "application/octet-stream" && mimeType != "text/plain") {
84 Vector<String> extensions = MIMETypeRegistry::getExtensionsForMIMEType(mimeType);
88 NSString *correctExtension = MIMETypeRegistry::getPreferredExtensionForMIMEType(mimeType);
/macosx-10.10/WebCore-7600.1.25/platform/efl/
H A DMIMETypeRegistryEfl.cpp42 const char* mimeType; member in struct:WebCore::ExtensionMap
87 return e->mimeType;
/macosx-10.10/WebCore-7600.1.25/platform/gtk/
H A DMIMETypeRegistryGtk.cpp38 const char* mimeType; member in struct:WebCore::ExtensionMap
74 return e->mimeType;
/macosx-10.10/WebKit2-7600.1.25/UIProcess/Cocoa/
H A DWKWebViewContentProviderRegistry.mm54 for (auto& mimeType : WebCore::MIMETypeRegistry::getPDFMIMETypes())
55 [self registerProvider:[WKPDFView class] forMIMEType:mimeType];
72 - (void)registerProvider:(Class <WKWebViewContentProvider>)contentProvider forMIMEType:(const String&)mimeType
74 _contentProviderForMIMEType.set(mimeType, contentProvider);
77 page.key->addMIMETypeWithCustomContentProvider(mimeType);
80 - (Class <WKWebViewContentProvider>)providerForMIMEType:(const String&)mimeType
82 const auto& representation = _contentProviderForMIMEType.find(mimeType);
H A DWKWebViewContentProviderRegistry.h45 - (void)registerProvider:(Class <WKWebViewContentProvider>)contentProvider forMIMEType:(const String&)mimeType;
46 - (Class <WKWebViewContentProvider>)providerForMIMEType:(const String&)mimeType;
/macosx-10.10/WebKit2-7600.1.25/UIProcess/API/efl/
H A Dewk_url_scheme_request.cpp65 void EwkUrlSchemeRequest::finish(const void* contentData, uint64_t contentLength, const char* mimeType) argument
68 WKRetainPtr<WKStringRef> wkMimeType = mimeType ? adoptWK(WKStringCreateWithUTF8CString(mimeType)) : 0;
95 Eina_Bool ewk_url_scheme_request_finish(Ewk_Url_Scheme_Request* request, const void* contentData, uint64_t contentLength, const char* mimeType) argument
99 impl->finish(contentData, contentLength, mimeType);
/macosx-10.10/WebCore-7600.1.25/loader/
H A DSubstituteData.h43 SubstituteData(PassRefPtr<SharedBuffer> content, const String& mimeType, argument
47 , m_mimeType(mimeType)
61 const String& mimeType() const { return m_mimeType; } function in class:WebCore::SubstituteData
/macosx-10.10/WebCore-7600.1.25/dom/
H A DIconURL.h64 IconURL(const URL& url, const String& sizes, const String& mimeType, IconType type) argument
67 , m_mimeType(mimeType)
/macosx-10.10/WebCore-7600.1.25/platform/network/win/
H A DResourceResponse.h38 ResourceResponse(const URL& url, const String& mimeType, long long expectedLength, const String& textEncodingName, const String& filename) argument
39 : ResourceResponseBase(url, mimeType, expectedLength, textEncodingName, filename)
/macosx-10.10/WebCore-7600.1.25/testing/
H A DMockCDM.h46 static bool supportsKeySystemAndMimeType(const String& keySystem, const String& mimeType);
50 virtual bool supportsMIMEType(const String& mimeType) override;
/macosx-10.10/WebCore-7600.1.25/platform/network/
H A DMIMESniffing.cpp168 const char* mimeType; member in struct:__anon5798::MagicNumbers
173 #define MAGIC_NUMBERS_MASKED(pattern, mask, mimeType, flags) {(pattern), (mask), (mimeType), sizeof(pattern) - 1, (flags)}
174 #define MAGIC_NUMBERS_SIMPLE(pattern, mimeType) {(pattern), 0, (mimeType), sizeof(pattern) - 1, 0}
317 return types[i].mimeType;
329 return types[i].mimeType;
337 if (!strcmp(type, types[i].mimeType))
346 const char* mimeType = 0; local
348 mimeType
376 const char* mimeType = 0; local
[all...]

Completed in 215 milliseconds

1234567891011