/external/chromium_org/net/base/ |
H A D | mime_sniffer_unittest.cc | 17 const char* mime_type; member in struct:net::SnifferTest 21 std::string mime_type; local 28 &mime_type); 29 EXPECT_EQ(tests[i].mime_type, mime_type); 38 std::string mime_type; local 40 mime_type_hint, &mime_type); 41 return mime_type; 45 std::string mime_type; local 54 SniffMimeType(buf, 0, url, type_hint, &mime_type); 375 std::string mime_type; local 391 std::string mime_type; local 451 std::string mime_type; local [all...] |
H A D | mime_util.h | 19 std::string* mime_type); 27 std::string* mime_type); 32 std::string* mime_type); 38 const std::string& mime_type, 42 NET_EXPORT bool IsSupportedImageMimeType(const std::string& mime_type); 43 NET_EXPORT bool IsSupportedMediaMimeType(const std::string& mime_type); 44 NET_EXPORT bool IsSupportedNonImageMimeType(const std::string& mime_type); 45 NET_EXPORT bool IsUnsupportedTextMimeType(const std::string& mime_type); 46 NET_EXPORT bool IsSupportedJavascriptMimeType(const std::string& mime_type); 47 NET_EXPORT bool IsSupportedCertificateMimeType(const std::string& mime_type); [all...] |
H A D | platform_mime_util.h | 20 const std::string& mime_type, 24 // |mime_type| to the set |extensions|. Returns at least the value returned 27 const std::string& mime_type, 34 std::string* mime_type) const;
|
H A D | data_url_unittest.cc | 15 const char* mime_type; member in struct:__anon8507::ParseTestData 169 std::string mime_type; local 173 net::DataURL::Parse(GURL(tests[i].url), &mime_type, &charset, &data); 176 EXPECT_EQ(tests[i].mime_type, mime_type);
|
H A D | mime_util.cc | 48 std::string* mime_type) const; 51 std::string* mime_type) const; 54 std::string* mime_type) const; 56 bool IsSupportedImageMimeType(const std::string& mime_type) const; 57 bool IsSupportedMediaMimeType(const std::string& mime_type) const; 58 bool IsSupportedNonImageMimeType(const std::string& mime_type) const; 59 bool IsUnsupportedTextMimeType(const std::string& mime_type) const; 60 bool IsSupportedJavascriptMimeType(const std::string& mime_type) const; 62 bool IsSupportedMimeType(const std::string& mime_type) const; 65 const std::string &mime_type) cons 117 const char* mime_type; member in struct:net::MimeInfo 225 const char* mime_type; local 350 const char* mime_type; member in struct:net::CertificateMimeTypeInfo 412 const char* mime_type; member in struct:net::MediaFormatStrict 527 MatchesMimeTypeParameters(const std::string& mime_type_pattern, const std::string& mime_type) argument 567 DCHECK_EQ(StringToLowerASCII(mime_type), mime_type); local 679 IsSupportedStrictMediaMimeType( const std::string& mime_type, const std::vector<std::string>& codecs) const argument 700 GetMimeTypeFromExtension(const base::FilePath::StringType& ext, std::string* mime_type) argument 705 GetMimeTypeFromFile(const base::FilePath& file_path, std::string* mime_type) argument 710 GetWellKnownMimeTypeFromExtension(const base::FilePath::StringType& ext, std::string* mime_type) argument 715 GetPreferredExtensionForMimeType(const std::string& mime_type, base::FilePath::StringType* extension) argument 721 IsSupportedImageMimeType(const std::string& mime_type) argument 725 IsSupportedMediaMimeType(const std::string& mime_type) argument 729 IsSupportedNonImageMimeType(const std::string& mime_type) argument 733 IsUnsupportedTextMimeType(const std::string& mime_type) argument 737 IsSupportedJavascriptMimeType(const std::string& mime_type) argument 741 IsSupportedMimeType(const std::string& mime_type) argument 745 MatchesMimeType(const std::string& mime_type_pattern, const std::string& mime_type) argument 758 IsStrictMediaMimeType(const std::string& mime_type) argument 762 IsSupportedStrictMediaMimeType(const std::string& mime_type, const std::vector<std::string>& codecs) argument 915 const std::string mime_type = StringToLowerASCII(unsafe_mime_type); local 959 GetIANAMediaType(const std::string& mime_type) argument 968 GetCertificateMimeTypeForMimeType( const std::string& mime_type) argument 979 IsSupportedCertificateMimeType(const std::string& mime_type) argument [all...] |
H A D | platform_mime_util_linux.cc | 58 const char* mime_type; member in struct:net::MimeToExt 77 const std::string& mime_type, base::FilePath::StringType* ext) const { 82 if (mime_type_ext_map[x].mime_type == mime_type) { 102 const std::string& mime_type, 105 if (GetPreferredExtensionForMimeType(mime_type, &ext)) 76 GetPreferredExtensionForMimeType( const std::string& mime_type, base::FilePath::StringType* ext) const argument 101 GetPlatformExtensionsForMimeType( const std::string& mime_type, base::hash_set<base::FilePath::StringType>* extensions) const argument
|
/external/chromium/net/base/ |
H A D | mime_util.h | 20 std::string* mime_type); 24 NET_EXPORT bool GetMimeTypeFromFile(const FilePath& file_path, std::string* mime_type); 29 bool GetPreferredExtensionForMimeType(const std::string& mime_type, 33 bool IsSupportedImageMimeType(const char* mime_type); 34 bool IsSupportedMediaMimeType(const char* mime_type); 35 bool IsSupportedNonImageMimeType(const char* mime_type); 36 bool IsSupportedJavascriptMimeType(const char* mime_type); 40 bool IsViewSourceMimeType(const char* mime_type); 43 bool IsSupportedMimeType(const std::string& mime_type); 49 const std::string &mime_type); [all...] |
H A D | platform_mime_util_linux.cc | 43 const char* mime_type; member in struct:net::MimeToExt 62 const std::string& mime_type, FilePath::StringType* ext) const { 67 if (mime_type_ext_map[x].mime_type == mime_type) { 61 GetPreferredExtensionForMimeType( const std::string& mime_type, FilePath::StringType* ext) const argument
|
H A D | mime_sniffer_unittest.cc | 17 const char* mime_type; member in struct:net::SnifferTest 21 std::string mime_type; local 28 &mime_type); 29 EXPECT_EQ(tests[i].mime_type, mime_type); 38 std::string mime_type; local 40 mime_type_hint, &mime_type); 41 return mime_type; 45 std::string mime_type; local 54 SniffMimeType(buf, 0, url, type_hint, &mime_type); 371 std::string mime_type; local 387 std::string mime_type; local [all...] |
H A D | platform_mime_util.h | 19 bool GetPreferredExtensionForMimeType(const std::string& mime_type, 26 std::string* mime_type) const;
|
H A D | platform_mime_util_android.cc | 19 const std::string& mime_type, FilePath::StringType* ext) const { 20 return MimeUtils::GuessExtensionFromMimeType(mime_type, ext); 18 GetPreferredExtensionForMimeType( const std::string& mime_type, FilePath::StringType* ext) const argument
|
H A D | data_url_unittest.cc | 15 const char* mime_type; member in struct:__anon2945::ParseTestData 143 std::string mime_type; local 147 net::DataURL::Parse(GURL(tests[i].url), &mime_type, &charset, &data); 150 EXPECT_EQ(tests[i].mime_type, mime_type);
|
H A D | mime_util.cc | 26 std::string* mime_type) const; 29 std::string* mime_type) const; 31 bool IsSupportedImageMimeType(const char* mime_type) const; 32 bool IsSupportedMediaMimeType(const char* mime_type) const; 33 bool IsSupportedNonImageMimeType(const char* mime_type) const; 34 bool IsSupportedJavascriptMimeType(const char* mime_type) const; 36 bool IsViewSourceMimeType(const char* mime_type) const; 38 bool IsSupportedMimeType(const std::string& mime_type) const; 41 const std::string &mime_type) const; 49 bool IsStrictMediaMimeType(const std::string& mime_type) cons 77 const char* mime_type; member in struct:net::MimeInfo 162 const char* mime_type; local 309 const char* mime_type; member in struct:net::MediaFormatStrict 389 DCHECK_EQ(StringToLowerASCII(mime_type), mime_type); local 458 IsSupportedStrictMediaMimeType(const std::string& mime_type, const std::vector<std::string>& codecs) const argument 478 GetMimeTypeFromExtension(const FilePath::StringType& ext, std::string* mime_type) argument 483 GetMimeTypeFromFile(const FilePath& file_path, std::string* mime_type) argument 487 GetPreferredExtensionForMimeType(const std::string& mime_type, FilePath::StringType* extension) argument 493 IsSupportedImageMimeType(const char* mime_type) argument 497 IsSupportedMediaMimeType(const char* mime_type) argument 501 IsSupportedNonImageMimeType(const char* mime_type) argument 505 IsSupportedJavascriptMimeType(const char* mime_type) argument 509 IsViewSourceMimeType(const char* mime_type) argument 513 IsSupportedMimeType(const std::string& mime_type) argument 517 MatchesMimeType(const std::string &mime_type_pattern, const std::string &mime_type) argument 526 IsStrictMediaMimeType(const std::string& mime_type) argument 530 IsSupportedStrictMediaMimeType(const std::string& mime_type, const std::vector<std::string>& codecs) argument 694 GetExtensionsForMimeType(const std::string& mime_type, std::vector<FilePath::StringType>* extensions) argument [all...] |
H A D | mime_util_unittest.cc | 14 const char* mime_type; member in struct:net::__anon2973 24 std::string mime_type; local 28 rv = GetMimeTypeFromExtension(tests[i].extension, &mime_type); 31 EXPECT_EQ(tests[i].mime_type, mime_type); 38 const char* mime_type; member in struct:net::__anon2974 49 std::string mime_type; local 54 &mime_type); 57 EXPECT_EQ(tests[i].mime_type, mime_type); [all...] |
/external/chromium_org/webkit/glue/ |
H A D | simple_webmimeregistry_impl.cc | 25 const WebString& mime_type) { 26 return net::IsSupportedMimeType(ToASCIIOrEmpty(mime_type)) ? 31 const WebString& mime_type) { 32 return net::IsSupportedImageMimeType(ToASCIIOrEmpty(mime_type)) ? 38 const WebString& mime_type) { 39 return net::IsSupportedJavascriptMimeType(ToASCIIOrEmpty(mime_type)) ? 46 const WebString& mime_type, const WebString& codecs) { 52 const WebString& mime_type, 60 const WebString& mime_type, 68 const WebString& mime_type) { 24 supportsMIMEType( const WebString& mime_type) argument 30 supportsImageMIMEType( const WebString& mime_type) argument 37 supportsJavaScriptMIMEType( const WebString& mime_type) argument 45 supportsMediaMIMEType( const WebString& mime_type, const WebString& codecs) argument 51 supportsMediaMIMEType( const WebString& mime_type, const WebString& codecs, const WebString& key_system) argument 59 supportsMediaSourceMIMEType( const WebString& mime_type, const WebString& codecs) argument 67 supportsNonImageMIMEType( const WebString& mime_type) argument 75 std::string mime_type; local 83 std::string mime_type; local 91 std::string mime_type; local 93 &mime_type); local 97 preferredExtensionForMIMEType( const WebString& mime_type) argument [all...] |
/external/chromium/webkit/glue/ |
H A D | simple_webmimeregistry_impl.cc | 32 const WebString& mime_type) { 33 if (!net::IsSupportedMimeType(ToASCIIOrEmpty(mime_type).c_str())) 39 const WebString& mime_type) { 40 if (!net::IsSupportedImageMimeType(ToASCIIOrEmpty(mime_type).c_str())) 46 const WebString& mime_type) { 47 if (!net::IsSupportedJavascriptMimeType(ToASCIIOrEmpty(mime_type).c_str())) 53 const WebString& mime_type, const WebString& codecs) { 55 if (!net::IsSupportedMediaMimeType(ToASCIIOrEmpty(mime_type).c_str())) 59 if (net::IsStrictMediaMimeType(ToASCIIOrEmpty(mime_type).c_str())) { 69 if (!net::IsSupportedStrictMediaMimeType(ToASCIIOrEmpty(mime_type) 31 supportsMIMEType( const WebString& mime_type) argument 38 supportsImageMIMEType( const WebString& mime_type) argument 45 supportsJavaScriptMIMEType( const WebString& mime_type) argument 52 supportsMediaMIMEType( const WebString& mime_type, const WebString& codecs) argument 87 supportsNonImageMIMEType( const WebString& mime_type) argument 96 std::string mime_type; local 98 WebStringToFilePathString(file_extension), &mime_type); local 104 std::string mime_type; local 110 preferredExtensionForMIMEType( const WebString& mime_type) argument [all...] |
/external/chromium_org/content/browser/ |
H A D | mime_registry_message_filter.cc | 41 const base::FilePath::StringType& ext, std::string* mime_type) { 42 net::GetMimeTypeFromExtension(ext, mime_type); 46 const base::FilePath& file_path, std::string* mime_type) { 47 net::GetMimeTypeFromFile(file_path, mime_type); 51 const std::string& mime_type, base::FilePath::StringType* extension) { 52 net::GetPreferredExtensionForMimeType(mime_type, extension); 40 OnGetMimeTypeFromExtension( const base::FilePath::StringType& ext, std::string* mime_type) argument 45 OnGetMimeTypeFromFile( const base::FilePath& file_path, std::string* mime_type) argument 50 OnGetPreferredExtensionForMimeType( const std::string& mime_type, base::FilePath::StringType* extension) argument
|
H A D | mime_registry_message_filter.h | 27 std::string* mime_type); 29 std::string* mime_type); 31 const std::string& mime_type,
|
/external/chromium_org/content/public/browser/ |
H A D | load_from_memory_cache_details.cc | 15 const std::string& mime_type, 22 mime_type(mime_type), 9 LoadFromMemoryCacheDetails( const GURL& url, int pid, int cert_id, net::CertStatus cert_status, const std::string& http_method, const std::string& mime_type, ResourceType::Type resource_type) argument
|
H A D | load_from_memory_cache_details.h | 22 const std::string& mime_type, 31 std::string mime_type; member in struct:content::LoadFromMemoryCacheDetails
|
/external/chromium_org/remoting/protocol/ |
H A D | clipboard_filter_unittest.cc | 17 MATCHER_P2(EqualsClipboardEvent, mime_type, data, "") { 18 return arg.mime_type() == mime_type && arg.data() == data; 21 static ClipboardEvent MakeClipboardEvent(const std::string& mime_type, argument 24 event.set_mime_type(mime_type);
|
/external/chromium_org/chrome/browser/download/ |
H A D | download_extensions.h | 23 // Tests if we think the server means for this mime_type to be executable. 24 bool IsExecutableMimeType(const std::string& mime_type);
|
/external/chromium/net/url_request/ |
H A D | url_request_about_job.cc | 35 bool URLRequestAboutJob::GetMimeType(std::string* mime_type) const { 36 *mime_type = "text/html";
|
/external/chromium_org/net/url_request/ |
H A D | url_request_about_job.cc | 31 bool URLRequestAboutJob::GetMimeType(std::string* mime_type) const { 32 *mime_type = "text/html";
|
H A D | url_request_data_job.cc | 19 int URLRequestDataJob::GetData(std::string* mime_type, argument 28 return DataURL::Parse(url, mime_type, charset, data)? OK: ERR_INVALID_URL;
|