/external/chromium/chrome/browser/ui/webui/ |
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_org/chrome/browser/plugins/ |
plugin_metadata.h | 65 bool HasMimeType(const std::string& mime_type) const; 66 void AddMimeType(const std::string& mime_type); 67 void AddMatchingMimeType(const std::string& mime_type);
|
/external/chromium_org/content/renderer/media/ |
webcontentdecryptionmodulesession_impl.cc | 34 const WebKit::WebString& mime_type, 38 if (!IsStringASCII(mime_type)) { 44 media_keys_->GenerateKeyRequest(UTF16ToASCII(mime_type),
|
/external/chromium_org/net/base/ |
mock_filter_context.h | 20 void SetMimeType(const std::string& mime_type) { mime_type_ = mime_type; } 30 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
|
/external/chromium_org/content/worker/ |
worker_webkitplatformsupport_impl.cc | 261 std::string mime_type; local 263 base::FilePath::FromUTF16Unsafe(file_extension).value(), &mime_type)); 264 return ASCIIToUTF16(mime_type); 269 std::string mime_type; local 271 base::FilePath::FromUTF16Unsafe(file_extension).value(), &mime_type); 272 return ASCIIToUTF16(mime_type); 277 std::string mime_type; local 281 &mime_type)); 282 return ASCIIToUTF16(mime_type); 286 const WebString& mime_type) { [all...] |
/external/chromium_org/chrome/browser/renderer_host/ |
plugin_info_message_filter_unittest.cc | 86 content::WebPluginMimeType mime_type; variable 87 mime_type.mime_type = "foo/bar"; 88 foo_plugin.mime_types.push_back(mime_type); 96 mime_type.mime_type = "foo/bar"; 97 bar_plugin.mime_types.push_back(mime_type);
|
/external/chromium_org/apps/ |
launcher.cc | 159 std::string mime_type; local 160 if (!net::GetMimeTypeFromFile(file_path_, &mime_type)) 161 mime_type = kFallbackMimeType; 164 &PlatformAppPathLauncher::LaunchWithMimeType, this, mime_type)); 194 const std::string& mime_type = local 196 LaunchWithMimeType(mime_type.empty() ? kFallbackMimeType : mime_type); 205 void LaunchWithMimeType(const std::string& mime_type) { 211 handler = FirstFileHandlerForFile(*extension_, mime_type, file_path_); 212 if (handler && !FileHandlerCanHandleFile(*handler, mime_type, file_path_)) [all...] |
/external/chromium_org/chrome/browser/chromeos/drive/file_system/ |
create_file_operation.cc | 35 std::string* mime_type) { 38 DCHECK(mime_type); 60 // In the request, parent_resource_id and mime_type are needed. 65 if (!net::GetMimeTypeFromFile(file_path, mime_type)) 66 *mime_type = kMimeTypeOctetStream; 148 std::string* mime_type = new std::string; local 157 mime_type), 163 base::Owned(mime_type))); 170 std::string* mime_type, 175 DCHECK(mime_type); [all...] |
/external/chromium_org/chrome/browser/extensions/api/file_handlers/ |
app_file_handler_util.cc | 46 const std::string& mime_type) { 49 if (net::MatchesMimeType(*type, mime_type)) 75 const std::string& mime_type, 83 if (FileHandlerCanHandleFile(*i, mime_type, path)) 118 const std::string& mime_type, 120 return FileHandlerCanHandleFileWithMimeType(handler, mime_type) ||
|
/external/chromium/chrome/browser/download/ |
drag_download_util.cc | 24 string16* mime_type, 41 if (mime_type) 42 *mime_type = metadata.substr(0, mime_type_end_pos);
|
download_extensions.cc | 241 bool IsExecutableMimeType(const std::string& mime_type) { 243 if (net::MatchesMimeType(kExecutableWhiteList[i], mime_type)) 247 if (net::MatchesMimeType(kExecutableBlackList[i], mime_type)) 251 return net::MatchesMimeType("application/*", mime_type);
|
/external/chromium/net/base/ |
mime_sniffer.cc | 113 const char* mime_type; member in struct:net::MagicNumber 119 #define MAGIC_NUMBER(mime_type, magic) \ 120 { (mime_type), (magic), sizeof(magic)-1, false }, 123 #define MAGIC_STRING(mime_type, magic) \ 124 { (mime_type), (magic), sizeof(magic)-1, true }, 261 result->assign(magic_entry->mime_type); 487 static bool IsUnknownMimeType(const std::string& mime_type) { 505 if (mime_type == kUnknownMimeTypes[i]) { 510 if (mime_type.find('/') == std::string::npos) { 565 bool ShouldSniffMimeType(const GURL& url, const std::string& mime_type) { [all...] |
filter.cc | 163 std::string mime_type; local 164 bool success = filter_context.GetMimeType(&mime_type); 165 DCHECK(success || mime_type.empty()); 169 if (LowerCaseEqualsASCII(mime_type, kApplicationXGzip) || 170 LowerCaseEqualsASCII(mime_type, kApplicationGzip) || 171 LowerCaseEqualsASCII(mime_type, kApplicationXGunzip)) 203 !IsSupportedMimeType(mime_type)) 270 if (StartsWithASCII(mime_type, kTextHtml, false)) {
|
platform_mime_util_mac.cc | 41 const std::string& mime_type, FilePath::StringType* ext) const { 43 base::SysUTF8ToCFStringRef(mime_type));
|
/external/chromium_org/chrome/browser/chromeos/login/screens/ |
terms_of_service_screen.cc | 135 std::string mime_type; local 139 !source->GetResponseHeaders()->GetMimeType(&mime_type) || 140 mime_type != "text/plain" ||
|
/external/chromium_org/chrome/browser/media_galleries/fileapi/ |
media_path_filter.cc | 74 std::string mime_type; local 75 return !net::GetMimeTypeFromExtension(extension, &mime_type) || 76 !net::IsSupportedMimeType(mime_type);
|
supported_audio_video_checker.cc | 29 std::string mime_type; local 30 if (net::GetWellKnownMimeTypeFromExtension(extensions[i], &mime_type) && 31 net::IsSupportedMimeType(mime_type)) {
|
/external/chromium_org/android_webview/native/ |
intercepted_request_data_impl.cc | 44 std::string* mime_type) OVERRIDE { 45 return intercepted_request_data_impl_->GetMimeType(env, mime_type); 99 std::string* mime_type) const { 104 *mime_type = ConvertJavaStringToUTF8(jstring_mime_type);
|
/external/chromium_org/chrome/renderer/ |
security_filter_peer.cc | 104 const std::string& mime_type) { 107 info_out->mime_type = mime_type; 118 if (!mime_type.empty()) { 120 raw_headers.append(mime_type); 135 const std::string& mime_type) 137 mime_type_(mime_type) { 185 const std::string& mime_type, 188 mime_type_(mime_type),
|
/external/chromium_org/content/browser/download/ |
drag_download_util.h | 36 string16* mime_type,
|
/external/chromium_org/content/renderer/media/crypto/ |
key_systems.h | 27 const std::string& mime_type,
|
key_systems_info.h | 19 const char* mime_type; member in struct:content::MediaFormatAndKeySystem
|
/external/chromium_org/content/test/net/ |
url_request_abort_on_end_job.h | 30 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
|
/external/chromium/chrome/browser/ |
plugin_data_remover.h | 29 void set_mime_type(const std::string& mime_type) { mime_type_ = mime_type; }
|
/external/chromium/net/proxy/ |
proxy_script_fetcher_impl.cc | 34 // Returns true if |mime_type| is one of the known PAC mime type. 35 bool IsPacMimeType(const std::string& mime_type) { 41 if (LowerCaseEqualsASCII(mime_type, kSupportedPacMimeTypes[i])) 129 std::string mime_type; local 132 if (!DataURL::Parse(url, &mime_type, &charset, &data)) 220 std::string mime_type; local 221 cur_request_->GetMimeType(&mime_type); 222 if (!IsPacMimeType(mime_type)) { 224 << mime_type;
|