Searched defs:mime_type (Results 1 - 25 of 214) sorted by last modified time

123456789

/external/wpa_supplicant_8/hs20/client/
H A Dosu_client.c1852 char mime_type[256]; member in struct:osu_icon
1978 snprintf(icon->mime_type, sizeof(icon->mime_type),
2184 strcasecmp(last->icon[j].mime_type,
2253 strcasecmp(last->icon[j].mime_type,
/external/flac/include/FLAC/
H A Dformat.h770 char *mime_type; member in struct:__anon21487
/external/flac/libFLAC/
H A Dmetadata_iterators.c285 FLAC_API FLAC__bool FLAC__metadata_get_picture(const char *filename, FLAC__StreamMetadata **picture, FLAC__StreamMetadata_Picture_Type type, const char *mime_type, const FLAC__byte *description, unsigned max_width, unsigned max_height, unsigned max_depth, unsigned max_colors) argument
310 (mime_type == 0 || !strcmp(mime_type, obj->data.picture.mime_type)) &&
2432 if((status = read_metadata_block_data_picture_cstring_cb_(handle, read_cb, (FLAC__byte**)(&(block->mime_type)), &len, FLAC__STREAM_METADATA_PICTURE_MIME_TYPE_LENGTH_LEN)) != FLAC__METADATA_SIMPLE_ITERATOR_STATUS_OK)
2785 slen = strlen(block->mime_type);
2789 if(write_cb(block->mime_type, 1, slen, handle) != slen)
H A Dmetadata_object.c480 FLAC__STREAM_METADATA_PICTURE_MIME_TYPE_LENGTH_LEN + /* empty mime_type string */
490 object->data.picture.mime_type = 0;
500 /* now initialize mime_type and description with empty strings to make things easier on the client */
501 if(!copy_cstring_(&object->data.picture.mime_type, "")) {
506 if(object->data.picture.mime_type)
507 free(object->data.picture.mime_type);
601 if(!copy_cstring_(&to->data.picture.mime_type, object->data.picture.mime_type)) {
668 if(0 != object->data.picture.mime_type) {
669 free(object->data.picture.mime_type);
1721 FLAC__metadata_object_picture_set_mime_type(FLAC__StreamMetadata *object, char *mime_type, FLAC__bool copy) argument
[all...]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dorg.eclipse.swt.gtk.linux.x86_3.6.1.v3657a.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
/external/chromium_org/native_client_sdk/src/examples/demo/drive/
H A Ddrive.cc215 std::string mime_type; member in struct:InsertFileParams
232 if (!params.mime_type.empty())
233 value["mimeType"] = Json::Value(params.mime_type);
245 result += params.mime_type;
487 p.mime_type = "text/plain";
505 p.mime_type = "text/plain";
/external/chromium_org/net/base/
H A Ddata_url.cc23 bool DataURL::Parse(const GURL& url, std::string* mime_type, argument
25 DCHECK(mime_type->empty());
45 mime_type->swap(*iter);
46 base::StringToLowerASCII(mime_type);
68 if (mime_type->empty()) {
71 // |mime_type| is empty.
72 mime_type->assign("text/plain");
73 } else if (!ParseMimeTypeWithoutParameter(*mime_type, NULL, NULL)) {
77 mime_type->assign("text/plain");
106 if (base64_encoded || !(mime_type
[all...]
H A Ddata_url_unittest.cc15 const char* mime_type; member in struct:__anon8992::ParseTestData
66 // Allow invalid mediatype for backward compatibility but set mime_type to
191 std::string mime_type; local
195 net::DataURL::Parse(GURL(tests[i].url), &mime_type, &charset, &data);
198 EXPECT_EQ(tests[i].mime_type, mime_type);
H A Dfilename_util.cc141 void GenerateSafeFileName(const std::string& mime_type, argument
145 EnsureSafeExtension(mime_type, ignore_extension, file_path);
H A Dfilename_util_icu.cc50 const std::string& mime_type,
57 mime_type,
66 const std::string& mime_type,
73 mime_type,
46 GetSuggestedFilename(const GURL& url, const std::string& content_disposition, const std::string& referrer_charset, const std::string& suggested_name, const std::string& mime_type, const std::string& default_name) argument
62 GenerateFileName(const GURL& url, const std::string& content_disposition, const std::string& referrer_charset, const std::string& suggested_name, const std::string& mime_type, const std::string& default_file_name) argument
H A Dfilename_util_internal.cc155 // constructed based on the |mime_type|.
165 void EnsureSafeExtension(const std::string& mime_type, argument
173 if ((ignore_extension || extension.empty()) && !mime_type.empty()) {
176 net::GetPreferredExtensionForMimeType(mime_type, &preferred_mime_extension);
177 net::GetExtensionsForMimeType(mime_type, &all_mime_extensions);
220 const std::string& mime_type,
278 GenerateSafeFileName(mime_type, overwrite_extension, &result);
296 const std::string& mime_type,
304 mime_type,
215 GetSuggestedFilenameImpl( const GURL& url, const std::string& content_disposition, const std::string& referrer_charset, const std::string& suggested_name, const std::string& mime_type, const std::string& default_name, ReplaceIllegalCharactersCallback replace_illegal_characters_callback) argument
291 GenerateFileNameImpl( const GURL& url, const std::string& content_disposition, const std::string& referrer_charset, const std::string& suggested_name, const std::string& mime_type, const std::string& default_file_name, ReplaceIllegalCharactersCallback replace_illegal_characters_callback) argument
H A Dfilename_util_unittest.cc30 const char* mime_type; member in struct:net::__anon9005::GenerateFilenameCase
56 test_case->mime_type, default_filename);
266 const char* mime_type; member in struct:net::__anon9006
414 GenerateSafeFileName(safe_tests[i].mime_type, false, &file_path);
H A Dfilename_util_unsafe.cc38 const std::string& mime_type,
45 mime_type,
33 GenerateFileExtensionUnsafe( const GURL& url, const std::string& content_disposition, const std::string& referrer_charset, const std::string& suggested_name, const std::string& mime_type, const std::string& default_file_name) argument
H A Dmime_sniffer.cc113 const char* mime_type; member in struct:net::MagicNumber
120 #define MAGIC_NUMBER(mime_type, magic) \
121 { (mime_type), (magic), sizeof(magic)-1, false, NULL },
133 #define MAGIC_MASK(mime_type, magic, mask) \
134 { (mime_type), (magic), verified_sizeof(magic, mask)-1, false, (mask) },
137 #define MAGIC_STRING(mime_type, magic) \
138 { (mime_type), (magic), sizeof(magic)-1, true, NULL },
365 result->assign(magic_entry.mime_type);
721 static bool IsUnknownMimeType(const std::string& mime_type) { argument
740 if (mime_type
800 ShouldSniffMimeType(const GURL& url, const std::string& mime_type) argument
[all...]
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.cc74 std::string* mime_type) const;
77 std::string* mime_type) const;
80 std::string* mime_type) const;
82 bool IsSupportedImageMimeType(const std::string& mime_type) const;
83 bool IsSupportedMediaMimeType(const std::string& mime_type) const;
84 bool IsSupportedNonImageMimeType(const std::string& mime_type) const;
85 bool IsUnsupportedTextMimeType(const std::string& mime_type) const;
86 bool IsSupportedJavascriptMimeType(const std::string& mime_type) const;
88 bool IsSupportedMimeType(const std::string& mime_type) const;
91 const std::string &mime_type) cons
197 const char* mime_type; member in struct:net::MimeInfo
307 const char* mime_type = FindMimeType(primary_mappings, local
408 const char* mime_type; member in struct:net::CertificateMimeTypeInfo
520 const char* mime_type; member in struct:net::MediaFormatStrict
736 MatchesMimeTypeParameters(const std::string& mime_type_pattern, const std::string& mime_type) argument
774 DCHECK_EQ(base::StringToLowerASCII(mime_type), mime_type); local
890 IsSupportedStrictMediaMimeType( const std::string& mime_type, const std::vector<std::string>& codecs) const argument
1065 GetDefaultCodec(const std::string& mime_type, Codec* default_codec) const argument
1089 GetMimeTypeFromExtension(const base::FilePath::StringType& ext, std::string* mime_type) argument
1094 GetMimeTypeFromFile(const base::FilePath& file_path, std::string* mime_type) argument
1099 GetWellKnownMimeTypeFromExtension(const base::FilePath::StringType& ext, std::string* mime_type) argument
1104 GetPreferredExtensionForMimeType(const std::string& mime_type, base::FilePath::StringType* extension) argument
1110 IsSupportedImageMimeType(const std::string& mime_type) argument
1114 IsSupportedMediaMimeType(const std::string& mime_type) argument
1118 IsSupportedNonImageMimeType(const std::string& mime_type) argument
1122 IsUnsupportedTextMimeType(const std::string& mime_type) argument
1126 IsSupportedJavascriptMimeType(const std::string& mime_type) argument
1130 IsSupportedMimeType(const std::string& mime_type) argument
1134 MatchesMimeType(const std::string& mime_type_pattern, const std::string& mime_type) argument
1154 IsStrictMediaMimeType(const std::string& mime_type) argument
1158 IsSupportedStrictMediaMimeType( const std::string& mime_type, const std::vector<std::string>& codecs) argument
1312 const std::string mime_type = base::StringToLowerASCII(unsafe_mime_type); local
1356 GetIANAMediaType(const std::string& mime_type) argument
1365 GetCertificateMimeTypeForMimeType( const std::string& mime_type) argument
1376 IsSupportedCertificateMimeType(const std::string& mime_type) argument
[all...]
H A Dmime_util_unittest.cc20 const char* mime_type; member in struct:net::__anon9020
33 std::string mime_type; local
37 rv = GetMimeTypeFromExtension(tests[i].extension, &mime_type);
40 EXPECT_EQ(tests[i].mime_type, mime_type);
47 const char* mime_type; member in struct:net::__anon9021
58 std::string mime_type; local
63 &mime_type);
66 EXPECT_EQ(tests[i].mime_type, mime_type);
385 const char* mime_type; member in struct:net::__anon9023
[all...]
H A Dplatform_mime_util_linux.cc58 const char* mime_type; member in struct:net::MimeToExt
78 const std::string& mime_type, base::FilePath::StringType* ext) const {
83 if (mime_type_ext_map[x].mime_type == mime_type) {
103 const std::string& mime_type,
106 if (GetPreferredExtensionForMimeType(mime_type, &ext))
77 GetPreferredExtensionForMimeType( const std::string& mime_type, base::FilePath::StringType* ext) const argument
102 GetPlatformExtensionsForMimeType( const std::string& mime_type, base::hash_set<base::FilePath::StringType>* extensions) const argument
H A Dplatform_mime_util_win.cc29 const std::string& mime_type, base::FilePath::StringType* ext) const {
31 L"MIME\\Database\\Content Type\\" + base::UTF8ToWide(mime_type));
44 const std::string& mime_type,
51 if (GetPreferredExtensionForMimeType(mime_type, &ext))
28 GetPreferredExtensionForMimeType( const std::string& mime_type, base::FilePath::StringType* ext) const argument
43 GetPlatformExtensionsForMimeType( const std::string& mime_type, base::hash_set<base::FilePath::StringType>* extensions) const argument
/external/chromium_org/net/filter/
H A Dfilter.cc160 std::string mime_type; local
161 bool success = filter_context.GetMimeType(&mime_type);
162 DCHECK(success || mime_type.empty());
166 if (LowerCaseEqualsASCII(mime_type, kApplicationXGzip) ||
167 LowerCaseEqualsASCII(mime_type, kApplicationGzip) ||
168 LowerCaseEqualsASCII(mime_type, kApplicationXGunzip))
203 !IsSupportedMimeType(mime_type))
270 if (StartsWithASCII(mime_type, kTextHtml, false)) {
H A Dmock_filter_context.h23 void SetMimeType(const std::string& mime_type) { mime_type_ = mime_type; } argument
44 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
/external/chromium_org/net/http/
H A Dhttp_response_headers.cc887 void HttpResponseHeaders::GetMimeTypeAndCharset(std::string* mime_type, argument
889 mime_type->clear();
899 HttpUtil::ParseContentType(value, mime_type, charset, &had_charset, NULL);
902 bool HttpResponseHeaders::GetMimeType(std::string* mime_type) const {
904 GetMimeTypeAndCharset(mime_type, &unused);
905 return !mime_type->empty();
H A Dhttp_response_headers_unittest.cc615 const std::string mime_type; member in struct:__anon9308::ContentTypeTestData
637 EXPECT_EQ(test.mime_type, value);
H A Dhttp_util.cc81 std::string* mime_type,
153 // also, if type_val is the same as mime_type, then just update the
154 // charset. however, if charset is empty and mime_type hasn't
162 // Common case here is that mime_type is empty
163 bool eq = !mime_type->empty() && LowerCaseEqualsASCII(begin + type_val,
165 mime_type->data());
167 mime_type->assign(begin + type_val, begin + type_end);
168 base::StringToLowerASCII(mime_type);
80 ParseContentType(const std::string& content_type_str, std::string* mime_type, std::string* charset, bool* had_charset, std::string* boundary) argument
H A Dhttp_util_unittest.cc729 std::string mime_type; local
733 net::HttpUtil::ParseContentType(tests[i].content_type, &mime_type,
735 EXPECT_EQ(tests[i].expected_mime_type, mime_type) << "i=" << i;

Completed in 246 milliseconds

123456789