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

123

/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:__anon2781::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::__anon2809
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::__anon2810
49 std::string mime_type; local
54 &mime_type);
57 EXPECT_EQ(tests[i].mime_type, mime_type);
[all...]
H A Dmock_filter_context.h21 void SetMimeType(const std::string& mime_type) { mime_type_ = mime_type; } argument
31 virtual bool GetMimeType(std::string* mime_type) const;
/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
H A Dplugin_data_remover.cc172 std::string mime_type; local
174 GURL(), kFlashMimeType, allow_wildcard, &plugin, &mime_type)) {
/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:__anon1933::__anon1934
459 kGenerateFileNameTestCases[i].mime_type,
470 kGenerateFileNameTestCases[i].mime_type,
500 const char* mime_type; member in struct:__anon1933::__anon1935
576 download_util::GenerateSafeFileName(kSafeFilenameCases[i].mime_type, &path);
H A Ddrag_download_util.cc24 string16* mime_type,
41 if (mime_type)
42 *mime_type = metadata.substr(0, mime_type_end_pos);
23 ParseDownloadMetadata(const string16& metadata, string16* mime_type, FilePath* file_name, GURL* url) argument
/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);
/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...]
H A Dsite_isolation_metrics.cc141 std::string mime_type = response.mimeType().utf8(); local
146 if (mime_type == "")
147 mime_type = "(NONE)";
148 MimeTypeMap::iterator mime_type_iter = mime_type_map.find(mime_type);
167 if (mime_type == "text/html") {
171 } else if (mime_type == "text/xml" ||
172 mime_type == "text/xsl" ||
173 mime_type == "application/xml" ||
174 mime_type == "application/xhtml+xml" ||
175 mime_type
[all...]
/external/chromium/chrome/browser/extensions/
H A Dextension_protocols.cc44 virtual bool GetData(std::string* mime_type, argument
56 result = net::GetMimeTypeFromFile(filename_, mime_type);
59 if (StartsWithASCII(*mime_type, "text/", false)) {
/external/chromium/chrome/browser/history/
H A Ddownload_create_info.h65 std::string mime_type; member in struct:DownloadCreateInfo
67 // may be different from |mime_type|, which may be set based on heuristics
/external/chromium/chrome/common/extensions/
H A Dextension_localization_peer_unittest.cc93 const std::string& mime_type,
96 original_peer_.get(), sender_.get(), mime_type, request_url);
92 CreateExtensionLocalizationPeer( const std::string& mime_type, const GURL& request_url) argument
H A Dextension_localization_peer.cc34 const std::string& mime_type,
39 StartsWithASCII(mime_type, "text/css", false)) ?
31 CreateExtensionLocalizationPeer( webkit_glue::ResourceLoaderBridge::Peer* peer, IPC::Message::Sender* message_sender, const std::string& mime_type, const GURL& request_url) argument
H A Duser_script.cc45 const std::string& mime_type) {
47 mime_type != "text/html";
44 IsURLUserScript(const GURL& url, const std::string& mime_type) argument

Completed in 282 milliseconds

123