Searched refs:mime_type (Results 1 - 25 of 450) sorted by relevance

1234567891011>>

/external/chromium_org/net/base/
H A Dmime_sniffer_unittest.cc17 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 Dmime_util.h19 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 Dplatform_mime_util.h20 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 Ddata_url_unittest.cc15 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 Dmime_util.cc48 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 Dplatform_mime_util_linux.cc58 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 Dmime_util.h20 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 Dplatform_mime_util_linux.cc43 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 Dmime_sniffer_unittest.cc17 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 Dplatform_mime_util.h19 bool GetPreferredExtensionForMimeType(const std::string& mime_type,
26 std::string* mime_type) const;
H A Dplatform_mime_util_android.cc19 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 Ddata_url_unittest.cc15 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 Dmime_util.cc26 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 Dmime_util_unittest.cc14 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 Dsimple_webmimeregistry_impl.cc25 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 Dsimple_webmimeregistry_impl.cc32 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 Dmime_registry_message_filter.cc41 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 Dmime_registry_message_filter.h27 std::string* mime_type);
29 std::string* mime_type);
31 const std::string& mime_type,
/external/chromium_org/content/public/browser/
H A Dload_from_memory_cache_details.cc15 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 Dload_from_memory_cache_details.h22 const std::string& mime_type,
31 std::string mime_type; member in struct:content::LoadFromMemoryCacheDetails
/external/chromium_org/remoting/protocol/
H A Dclipboard_filter_unittest.cc17 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 Ddownload_extensions.h23 // 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 Durl_request_about_job.cc35 bool URLRequestAboutJob::GetMimeType(std::string* mime_type) const {
36 *mime_type = "text/html";
/external/chromium_org/net/url_request/
H A Durl_request_about_job.cc31 bool URLRequestAboutJob::GetMimeType(std::string* mime_type) const {
32 *mime_type = "text/html";
H A Durl_request_data_job.cc19 int URLRequestDataJob::GetData(std::string* mime_type, argument
28 return DataURL::Parse(url, mime_type, charset, data)? OK: ERR_INVALID_URL;

Completed in 1055 milliseconds

1234567891011>>