Searched defs:mime_type (Results 1 - 25 of 225) sorted by relevance

123456789

/external/chromium/net/base/
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 Dplatform_mime_util_mac.cc41 const std::string& mime_type, FilePath::StringType* ext) const {
43 base::SysUTF8ToCFStringRef(mime_type));
40 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 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 Dplatform_mime_util_win.cc29 const std::string& mime_type, FilePath::StringType* ext) const {
30 std::wstring key(L"MIME\\Database\\Content Type\\" + UTF8ToWide(mime_type));
28 GetPreferredExtensionForMimeType( const std::string& mime_type, FilePath::StringType* ext) const argument
H A Ddata_url.cc19 bool DataURL::Parse(const GURL& url, std::string* mime_type, argument
45 mime_type->assign(after_colon, semi_colon);
46 StringToLowerASCII(mime_type);
58 if (mime_type->empty())
59 mime_type->assign("text/plain");
86 if (base64_encoded || !(mime_type->compare(0, 5, "text/") == 0 ||
87 mime_type->find("xml") != std::string::npos)) {
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 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/chrome/browser/tab_contents/
H A Dview_source_browsertest.cc88 const char* mime_type = browser()->tab_strip_model()->GetActiveWebContents()-> local
91 EXPECT_STREQ("audio/wav", mime_type);
/external/chromium_org/chrome/common/extensions/manifest_handlers/
H A Dnacl_modules_handler.h24 std::string mime_type; member in struct:extensions::NaClModuleInfo
/external/chromium_org/content/browser/
H A Dplugin_data_remover_impl.h28 void set_mime_type(const std::string& mime_type) { mime_type_ = mime_type; } argument
/external/chromium_org/content/browser/streams/
H A Dstream_handle_impl.cc14 const std::string& mime_type)
18 mime_type_(mime_type),
12 StreamHandleImpl(const base::WeakPtr<Stream>& stream, const GURL& original_url, const std::string& mime_type) argument
/external/chromium_org/content/public/browser/
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/net/base/
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 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
H A Dplatform_mime_util_win.cc29 const std::string& mime_type, base::FilePath::StringType* ext) const {
30 std::wstring key(L"MIME\\Database\\Content Type\\" + UTF8ToWide(mime_type));
43 const std::string& mime_type,
50 if (GetPreferredExtensionForMimeType(mime_type, &ext))
28 GetPreferredExtensionForMimeType( const std::string& mime_type, base::FilePath::StringType* ext) const argument
42 GetPlatformExtensionsForMimeType( const std::string& mime_type, base::hash_set<base::FilePath::StringType>* extensions) const argument
/external/chromium_org/net/http/
H A Dhttp_util.cc95 string* mime_type,
167 // also, if type_val is the same as mime_type, then just update the
168 // charset. however, if charset is empty and mime_type hasn't
176 // Common case here is that mime_type is empty
177 bool eq = !mime_type->empty() && LowerCaseEqualsASCII(begin + type_val,
179 mime_type->data());
181 mime_type->assign(begin + type_val, begin + type_end);
182 StringToLowerASCII(mime_type); variable
/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/chrome/browser/
H A Dbrowser_process.h225 void set_plugin_data_remover_mime_type(const std::string& mime_type) { argument
226 plugin_data_remover_mime_type_ = mime_type;
H A Dplugin_data_remover.h29 void set_mime_type(const std::string& mime_type) { mime_type_ = mime_type; } argument
/external/chromium/chrome/browser/chromeos/
H A Dgview_request_interceptor.cc60 std::string mime_type; local
61 request->GetMimeType(&mime_type);
64 if (mime_type == kPdfMimeType) {
76 if (supported_mime_types_.count(mime_type) > 0) {
/external/chromium/chrome/browser/download/
H A Ddownload_extensions.cc241 bool IsExecutableMimeType(const std::string& mime_type) { argument
243 if (net::MatchesMimeType(kExecutableWhiteList[i], mime_type))
247 if (net::MatchesMimeType(kExecutableBlackList[i], mime_type))
251 return net::MatchesMimeType("application/*", mime_type);
H A Ddownload_util_unittest.cc38 const char* mime_type; member in struct:__anon2097::__anon2098
459 kGenerateFileNameTestCases[i].mime_type,
470 kGenerateFileNameTestCases[i].mime_type,
500 const char* mime_type; member in struct:__anon2097::__anon2099
576 download_util::GenerateSafeFileName(kSafeFilenameCases[i].mime_type, &path);
/external/chromium/chrome/browser/ui/webui/
H A Dshared_resources_data_source.cc80 std::string mime_type; local
81 net::GetMimeTypeFromFile(FilePath().AppendASCII(path), &mime_type); local
82 return mime_type;
/external/chromium/net/url_request/
H A Durl_request_data_job.cc23 bool URLRequestDataJob::GetData(std::string* mime_type, argument
31 return DataURL::Parse(url, mime_type, charset, data);

Completed in 430 milliseconds

123456789