/external/chromium/net/base/ |
mime_util.h | 18 std::string* mime_type); 22 bool GetMimeTypeFromFile(const FilePath& file_path, std::string* mime_type); 27 bool GetPreferredExtensionForMimeType(const std::string& mime_type, 31 bool IsSupportedImageMimeType(const char* mime_type); 32 bool IsSupportedMediaMimeType(const char* mime_type); 33 bool IsSupportedNonImageMimeType(const char* mime_type); 34 bool IsSupportedJavascriptMimeType(const char* mime_type); 38 bool IsViewSourceMimeType(const char* mime_type); 41 bool IsSupportedMimeType(const std::string& mime_type); 47 const std::string &mime_type); [all...] |
platform_mime_util.h | 18 bool GetPreferredExtensionForMimeType(const std::string& mime_type, 25 std::string* mime_type) const;
|
mime_util.cc | 23 std::string* mime_type) const; 26 std::string* mime_type) const; 28 bool IsSupportedImageMimeType(const char* mime_type) const; 29 bool IsSupportedMediaMimeType(const char* mime_type) const; 30 bool IsSupportedNonImageMimeType(const char* mime_type) const; 31 bool IsSupportedJavascriptMimeType(const char* mime_type) const; 33 bool IsViewSourceMimeType(const char* mime_type) const; 35 bool IsSupportedMimeType(const std::string& mime_type) const; 38 const std::string &mime_type) const; 64 const char* mime_type; member in struct:net::MimeInfo 140 const char* mime_type; local [all...] |
mime_sniffer_unittest.cc | 20 const char* mime_type; member in struct:SnifferTest 24 std::string mime_type; local 31 &mime_type); 32 EXPECT_EQ(tests[i].mime_type, mime_type); 41 std::string mime_type; local 43 mime_type_hint, &mime_type); 44 return mime_type; 48 std::string mime_type; local 57 net::SniffMimeType(buf, 0, url, type_hint, &mime_type); 371 std::string mime_type; local [all...] |
data_url_unittest.cc | 15 const char* mime_type; member in struct:__anon2352::ParseTestData 146 std::string mime_type; local 150 net::DataURL::Parse(GURL(tests[i].url), &mime_type, &charset, &data); 153 EXPECT_EQ(tests[i].mime_type, mime_type);
|
data_url.h | 32 // The resulting mime_type is normalized to lowercase. The data is the 40 std::string* mime_type,
|
mime_util_unittest.cc | 17 const char* mime_type; member in struct:__anon2375 27 std::string mime_type; local 31 rv = net::GetMimeTypeFromExtension(tests[i].extension, &mime_type); 34 EXPECT_EQ(tests[i].mime_type, mime_type); 41 const char* mime_type; member in struct:__anon2376 52 std::string mime_type; local 57 &mime_type); 60 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"); 82 if (base64_encoded || !(mime_type->compare(0, 5, "text/") == 0 || 83 mime_type->find("xml") != std::string::npos)) {
|
filter_unittest.h | 26 void SetMimeType(const std::string& mime_type) { mime_type_ = mime_type; } 36 virtual bool GetMimeType(std::string* mime_type) const { 37 *mime_type = mime_type_;
|
mime_sniffer.h | 14 // Examine the URL and the mime_type and decide whether we should sniff a 18 // @param mime_type The current mime type, e.g. from the Content-Type header. 20 bool ShouldSniffMimeType(const GURL& url, const std::string& mime_type);
|
platform_mime_util_win.cc | 28 const std::string& mime_type, FilePath::StringType* ext) const { 29 std::wstring key(L"MIME\\Database\\Content Type\\" + UTF8ToWide(mime_type));
|
/external/chromium/net/url_request/ |
url_request_about_job.h | 18 virtual bool GetMimeType(std::string* mime_type) const;
|
url_request_about_job.cc | 30 bool URLRequestAboutJob::GetMimeType(std::string* mime_type) const { 31 *mime_type = "text/html";
|
url_request_data_job.cc | 23 bool URLRequestDataJob::GetData(std::string* mime_type, 31 return net::DataURL::Parse(url, mime_type, charset, data);
|
url_request_simple_job.h | 20 virtual bool GetMimeType(std::string* mime_type) const; 27 virtual bool GetData(std::string* mime_type,
|
url_request_data_job.h | 19 virtual bool GetData(std::string* mime_type,
|
/external/webkit/WebKitTools/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/bluetooth/glib/gio/xdgmime/ |
xdgmimeglob.c | 55 const char *mime_type; member in struct:XdgGlobHashNode 63 const char *mime_type; member in struct:XdgGlobList 102 if (ptr->mime_type) 103 free ((void *) ptr->mime_type); 113 const char *mime_type, 121 new_element->mime_type = mime_type; 157 if (glob_hash_node->mime_type) 158 printf (" - %s %d\n", glob_hash_node->mime_type, glob_hash_node->weight); 170 const char *mime_type, [all...] |
xdgmimeicon.c | 51 char *mime_type; member in struct:XdgIcon 83 free (list->icons[i].mime_type); 94 return strcmp (((XdgIcon *)v1)->mime_type, ((XdgIcon *)v2)->mime_type); 99 const char *mime_type) 106 key.mime_type = (char *)mime_type; 152 list->icons[list->n_icons].mime_type = strdup (line); 177 list->icons[i].mime_type,
|
xdgmimealias.c | 53 char *mime_type; member in struct:XdgAlias 85 free (list->aliases[i].mime_type); 108 key.mime_type = NULL; 113 return entry->mime_type; 154 list->aliases[list->n_aliases].mime_type = strdup (sep); 179 list->aliases[i].mime_type);
|
/external/chromium/base/third_party/xdg_mime/ |
xdgmimeglob.c | 55 const char *mime_type; member in struct:XdgGlobHashNode 63 const char *mime_type; member in struct:XdgGlobList 102 if (ptr->mime_type) 103 free ((void *) ptr->mime_type); 113 const char *mime_type, 121 new_element->mime_type = mime_type; 157 if (glob_hash_node->mime_type) 158 printf (" - %s %d\n", glob_hash_node->mime_type, glob_hash_node->weight); 170 const char *mime_type, [all...] |
xdgmimeicon.c | 51 char *mime_type; member in struct:XdgIcon 83 free (list->icons[i].mime_type); 94 return strcmp (((XdgIcon *)v1)->mime_type, ((XdgIcon *)v2)->mime_type); 99 const char *mime_type) 106 key.mime_type = (char *)mime_type; 152 list->icons[list->n_icons].mime_type = strdup (line); 177 list->icons[i].mime_type,
|
xdgmimealias.c | 53 char *mime_type; member in struct:XdgAlias 85 free (list->aliases[i].mime_type); 108 key.mime_type = NULL; 113 return entry->mime_type; 154 list->aliases[list->n_aliases].mime_type = strdup (sep); 179 list->aliases[i].mime_type);
|
/external/chromium/base/ |
mime_util.h | 34 FilePath GetMimeIcon(const std::string& mime_type, size_t size);
|
/external/webkit/WebKit/gtk/tests/ |
testmimehandling.c | 99 WebKitNetworkRequest* request, const char* mime_type, 105 g_assert_cmpstr(mime_type, ==, "application/pdf"); 106 g_assert(!webkit_web_view_can_show_mime_type(view, mime_type)); 108 g_assert_cmpstr(mime_type, ==, "text/html"); 109 g_assert(webkit_web_view_can_show_mime_type(view, mime_type)); 123 g_assert_cmpstr(mime_type, ==, "text/plain"); 124 g_assert(webkit_web_view_can_show_mime_type(view, mime_type)); 126 g_assert_cmpstr(mime_type, ==, "audio/ogg"); 127 g_assert(webkit_web_view_can_show_mime_type(view, mime_type));
|