/external/chromium/net/base/ |
mime_util.h | 20 std::string* mime_type); 24 NET_EXPORT bool GetMimeTypeFromFile(const FilePath& file_path, std::string* mime_type); 29 bool GetPreferredExtensionForMimeType(const std::string& mime_type, 33 bool IsSupportedImageMimeType(const char* mime_type); 34 bool IsSupportedMediaMimeType(const char* mime_type); 35 bool IsSupportedNonImageMimeType(const char* mime_type); 36 bool IsSupportedJavascriptMimeType(const char* mime_type); 40 bool IsViewSourceMimeType(const char* mime_type); 43 bool IsSupportedMimeType(const std::string& mime_type); 49 const std::string &mime_type); [all...] |
platform_mime_util.h | 19 bool GetPreferredExtensionForMimeType(const std::string& mime_type, 26 std::string* mime_type) const;
|
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) {
|
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...] |
platform_mime_util_android.cc | 19 const std::string& mime_type, FilePath::StringType* ext) const { 20 return MimeUtils::GuessExtensionFromMimeType(mime_type, ext);
|
data_url_unittest.cc | 15 const char* mime_type; member in struct:__anon4888::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);
|
mime_util.cc | 26 std::string* mime_type) const; 29 std::string* mime_type) const; 31 bool IsSupportedImageMimeType(const char* mime_type) const; 32 bool IsSupportedMediaMimeType(const char* mime_type) const; 33 bool IsSupportedNonImageMimeType(const char* mime_type) const; 34 bool IsSupportedJavascriptMimeType(const char* mime_type) const; 36 bool IsViewSourceMimeType(const char* mime_type) const; 38 bool IsSupportedMimeType(const std::string& mime_type) const; 41 const std::string &mime_type) const; 49 bool IsStrictMediaMimeType(const std::string& mime_type) const 77 const char* mime_type; member in struct:net::MimeInfo 162 const char* mime_type; local 309 const char* mime_type; member in struct:net::MediaFormatStrict 389 DCHECK_EQ(StringToLowerASCII(mime_type), mime_type); local [all...] |
data_url.h | 35 // The resulting mime_type is normalized to lowercase. The data is the 46 std::string* mime_type,
|
mime_util_unittest.cc | 14 const char* mime_type; member in struct:net::__anon4916 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::__anon4917 49 std::string mime_type; local 54 &mime_type); 57 EXPECT_EQ(tests[i].mime_type, mime_type); [all...] |
data_url.cc | 19 bool DataURL::Parse(const GURL& url, std::string* mime_type, 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)) {
|
mock_filter_context.h | 21 void SetMimeType(const std::string& mime_type) { mime_type_ = mime_type; } 31 virtual bool GetMimeType(std::string* mime_type) const;
|
mock_filter_context.cc | 18 bool MockFilterContext::GetMimeType(std::string* mime_type) const { 19 *mime_type = mime_type_;
|
mime_sniffer.h | 21 // Examine the URL and the mime_type and decide whether we should sniff a 25 // @param mime_type The current mime type, e.g. from the Content-Type header. 27 bool ShouldSniffMimeType(const GURL& url, const std::string& mime_type);
|
/external/chromium/webkit/glue/ |
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).c_str() 96 std::string mime_type; local 98 WebStringToFilePathString(file_extension), &mime_type); local 104 std::string mime_type; local [all...] |
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 == "application/rss+xml" | [all...] |
/external/webkit/Tools/iExploder/iexploder-1.7.2/src/ |
iexploder.cgi | 34 mime_type = cgi.params['m'][0] || nil 35 if mime_type: 36 header_options = ie.buildHeaders(mime_type) 42 ie.buildMediaFile(mime_type)
|
/external/chromium/net/url_request/ |
url_request_about_job.cc | 35 bool URLRequestAboutJob::GetMimeType(std::string* mime_type) const { 36 *mime_type = "text/html";
|
url_request_data_job.cc | 23 bool URLRequestDataJob::GetData(std::string* mime_type, 31 return DataURL::Parse(url, mime_type, charset, data);
|
url_request_simple_job.h | 24 virtual bool GetMimeType(std::string* mime_type) const; 31 virtual bool GetData(std::string* mime_type,
|
url_request_about_job.h | 25 virtual bool GetMimeType(std::string* mime_type) const;
|
url_request_data_job.h | 25 virtual bool GetData(std::string* mime_type,
|
/external/webkit/Tools/Scripts/webkitpy/thirdparty/simplejson/ |
jsonfilter.py | 5 def __init__(self, app, mime_type='text/x-json'): 7 self.mime_type = mime_type 15 environ['jsonfilter.mime_type'] = self.mime_type 17 if environ.get('CONTENT_TYPE', '') == self.mime_type: 30 content_type = self.mime_type
|
/external/chromium/base/ |
mime_util.h | 35 FilePath GetMimeIcon(const std::string& mime_type, size_t size);
|
/external/chromium/chrome/browser/chromeos/ |
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/ |
download_extensions.h | 31 // Tests if we think the server means for this mime_type to be executable. 32 bool IsExecutableMimeType(const std::string& mime_type);
|