/external/chromium/net/base/ |
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 | platform_mime_util_mac.cc | 41 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 D | data_url_unittest.cc | 15 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 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 | platform_mime_util_win.cc | 29 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 D | data_url.cc | 19 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 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 | mime_util_unittest.cc | 14 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 D | mock_filter_context.h | 21 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 D | browser_process.h | 225 void set_plugin_data_remover_mime_type(const std::string& mime_type) { argument 226 plugin_data_remover_mime_type_ = mime_type;
|
H A D | plugin_data_remover.h | 29 void set_mime_type(const std::string& mime_type) { mime_type_ = mime_type; } argument
|
H A D | plugin_data_remover.cc | 172 std::string mime_type; local 174 GURL(), kFlashMimeType, allow_wildcard, &plugin, &mime_type)) {
|
/external/chromium/chrome/browser/chromeos/ |
H A D | gview_request_interceptor.cc | 60 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 D | download_extensions.cc | 241 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 D | download_util_unittest.cc | 38 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 D | drag_download_util.cc | 24 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 D | shared_resources_data_source.cc | 80 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 D | url_request_data_job.cc | 23 bool URLRequestDataJob::GetData(std::string* mime_type, argument 31 return DataURL::Parse(url, mime_type, charset, data);
|
/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...] |
H A D | site_isolation_metrics.cc | 141 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 D | extension_protocols.cc | 44 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 D | download_create_info.h | 65 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 D | extension_localization_peer_unittest.cc | 93 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 D | extension_localization_peer.cc | 34 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 D | user_script.cc | 45 const std::string& mime_type) { 47 mime_type != "text/html"; 44 IsURLUserScript(const GURL& url, const std::string& mime_type) argument
|