Searched defs:mime_type (Results 26 - 50 of 214) sorted by relevance

123456789

/external/chromium_org/net/base/
H A Dfilename_util.cc141 void GenerateSafeFileName(const std::string& mime_type, argument
145 EnsureSafeExtension(mime_type, ignore_extension, file_path);
H A Dfilename_util_unsafe.cc38 const std::string& mime_type,
45 mime_type,
33 GenerateFileExtensionUnsafe( const GURL& url, const std::string& content_disposition, const std::string& referrer_charset, const std::string& suggested_name, const std::string& mime_type, const std::string& default_file_name) argument
H A Ddata_url.cc23 bool DataURL::Parse(const GURL& url, std::string* mime_type, argument
25 DCHECK(mime_type->empty());
45 mime_type->swap(*iter);
46 base::StringToLowerASCII(mime_type);
68 if (mime_type->empty()) {
71 // |mime_type| is empty.
72 mime_type->assign("text/plain");
73 } else if (!ParseMimeTypeWithoutParameter(*mime_type, NULL, NULL)) {
77 mime_type->assign("text/plain");
106 if (base64_encoded || !(mime_type
[all...]
H A Dfilename_util_icu.cc50 const std::string& mime_type,
57 mime_type,
66 const std::string& mime_type,
73 mime_type,
46 GetSuggestedFilename(const GURL& url, const std::string& content_disposition, const std::string& referrer_charset, const std::string& suggested_name, const std::string& mime_type, const std::string& default_name) argument
62 GenerateFileName(const GURL& url, const std::string& content_disposition, const std::string& referrer_charset, const std::string& suggested_name, const std::string& mime_type, const std::string& default_file_name) argument
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);
375 std::string mime_type; local
391 std::string mime_type; local
451 std::string mime_type; local
[all...]
/external/chromium_org/net/url_request/
H A Durl_request_data_job.cc17 std::string* mime_type,
21 if (!net::DataURL::Parse(url, mime_type, charset, data))
24 // |mime_type| set by net::DataURL::Parse() is guaranteed to be in
28 DCHECK(!mime_type->empty());
38 "Content-Type: " + *mime_type + ";charset=" + *charset;
51 int URLRequestDataJob::GetData(std::string* mime_type, argument
63 return BuildResponse(url, mime_type, charset, data, NULL);
16 BuildResponse(const GURL& url, std::string* mime_type, std::string* charset, std::string* data, HttpResponseHeaders* headers) argument
/external/chromium_org/remoting/protocol/
H A Dclipboard_echo_filter_unittest.cc18 MATCHER_P2(EqualsClipboardEvent, mime_type, data, "") {
19 return arg.mime_type() == mime_type && arg.data() == data;
22 static ClipboardEvent MakeClipboardEvent(const std::string& mime_type, argument
25 event.set_mime_type(mime_type);
/external/chromium_org/content/child/
H A Dsimple_webmimeregistry_impl.cc26 const WebString& mime_type) {
27 return net::IsSupportedMimeType(ToASCIIOrEmpty(mime_type)) ?
32 const WebString& mime_type) {
33 return net::IsSupportedImageMimeType(ToASCIIOrEmpty(mime_type)) ?
39 const WebString& mime_type) {
40 std::string ascii_mime_type = ToASCIIOrEmpty(mime_type);
49 const WebString& mime_type) {
50 return net::IsSupportedJavascriptMimeType(ToASCIIOrEmpty(mime_type)) ?
57 const WebString& mime_type,
65 const WebString& mime_type,
25 supportsMIMEType( const WebString& mime_type) argument
31 supportsImageMIMEType( const WebString& mime_type) argument
38 supportsImagePrefixedMIMEType( const WebString& mime_type) argument
48 supportsJavaScriptMIMEType( const WebString& mime_type) argument
56 supportsMediaMIMEType( const WebString& mime_type, const WebString& codecs, const WebString& key_system) argument
64 supportsMediaSourceMIMEType( const WebString& mime_type, const WebString& codecs) argument
71 supportsEncryptedMediaMIMEType( const blink::WebString& key_system, const blink::WebString& mime_type, const blink::WebString& codecs) argument
80 supportsNonImageMIMEType( const WebString& mime_type) argument
88 std::string mime_type; local
96 std::string mime_type; local
104 std::string mime_type; local
106 &mime_type); local
[all...]
/external/chromium_org/extensions/browser/api/
H A Dcapture_web_contents_function.cc91 std::string mime_type; local
102 mime_type = kMimeTypeJpeg;
109 mime_type = kMimeTypePng;
126 0, base::StringPrintf("data:%s;base64,", mime_type.c_str()));
/external/chromium_org/extensions/common/manifest_handlers/
H A Dnacl_modules_handler.cc67 // Get nacl_modules[i].mime_type.
68 std::string mime_type; local
69 if (!module_value->GetString(keys::kNaClModulesMIMEType, &mime_type)) {
78 nacl_module_data->nacl_modules_.back().mime_type = mime_type;
/external/chromium_org/chrome/browser/chromeos/drive/file_system/
H A Dcreate_file_operation.cc47 // If mime_type is not set or "application/octet-stream", guess from the
49 std::string mime_type = mime_type_in;
50 if ((mime_type.empty() || mime_type == kMimeTypeOctetStream) &&
51 !net::GetMimeTypeFromFile(file_path, &mime_type))
52 mime_type = kMimeTypeOctetStream;
62 entry->mutable_file_specific_info()->set_content_mime_type(mime_type);
89 const std::string& mime_type,
101 mime_type,
87 CreateFile(const base::FilePath& file_path, bool is_exclusive, const std::string& mime_type, const FileOperationCallback& callback) argument
H A Dopen_file_operation.cc51 const std::string& mime_type,
67 mime_type,
75 mime_type,
49 OpenFile(const base::FilePath& file_path, OpenMode open_mode, const std::string& mime_type, const OpenFileCallback& callback) argument
/external/chromium_org/chrome/browser/chromeos/extensions/file_manager/
H A Dprivate_api_tasks.cc52 const std::string mime_type = mime_type_list[i]; local
54 if (!mime_type.empty())
55 mime_types.insert(mime_type);
/external/chromium_org/chrome/browser/chromeos/file_system_provider/
H A Dprovided_file_system_interface.h43 std::string mime_type; member in struct:chromeos::file_system_provider::EntryMetadata
/external/chromium_org/chrome/browser/chromeos/login/screens/
H A Dterms_of_service_screen.cc136 std::string mime_type; local
140 !source->GetResponseHeaders()->GetMimeType(&mime_type) ||
141 mime_type != "text/plain" ||
/external/chromium_org/chrome/browser/extensions/api/file_handlers/
H A Dmime_util.cc47 scoped_ptr<std::string> mime_type,
49 callback.Run(*mime_type);
59 const std::string& mime_type) {
61 callback.Run(mime_type);
83 scoped_ptr<std::string> mime_type,
85 callback.Run(*mime_type);
95 scoped_ptr<std::string> mime_type,
97 if (!mime_type->empty()) {
98 callback.Run(*mime_type);
194 const std::string& mime_type) {
46 OnGetMimeTypeFromFileForNonNativeLocalPathCompleted( scoped_ptr<std::string> mime_type, const base::Callback<void(const std::string&)>& callback) argument
55 OnGetMimeTypeFromMetadataForNonNativeLocalPathCompleted( const base::FilePath& local_path, const base::Callback<void(const std::string&)>& callback, bool success, const std::string& mime_type) argument
82 OnSniffMimeTypeForNativeLocalPathCompleted( scoped_ptr<std::string> mime_type, const base::Callback<void(const std::string&)>& callback) argument
93 OnGetMimeTypeFromFileForNativeLocalPathCompleted( const base::FilePath& local_path, scoped_ptr<std::string> mime_type, const base::Callback<void(const std::string&)>& callback) argument
193 OnMimeTypeCollected(size_t index, const std::string& mime_type) argument
[all...]
H A Dmime_util_unittest.cc30 void OnMimeTypeResult(std::string* output, const std::string& mime_type) { argument
31 *output = mime_type;
/external/chromium_org/chrome/browser/history/
H A Ddownload_row.cc24 const std::string& mime_type,
43 mime_type(mime_type),
19 DownloadRow( const base::FilePath& current_path, const base::FilePath& target_path, const std::vector<GURL>& url_chain, const GURL& referrer, const std::string& mime_type, const std::string& original_mime_type, const base::Time& start, const base::Time& end, const std::string& etag, const std::string& last_modified, int64 received, int64 total, content::DownloadItem::DownloadState download_state, content::DownloadDangerType danger_type, content::DownloadInterruptReason interrupt_reason, uint32 id, bool download_opened, const std::string& ext_id, const std::string& ext_name) argument
H A Ddownload_row.h30 const std::string& mime_type,
64 std::string mime_type; member in struct:history::DownloadRow
/external/chromium_org/chrome/browser/media_galleries/fileapi/
H A Dmedia_path_filter.cc80 std::string mime_type; local
81 return !net::GetMimeTypeFromExtension(extension, &mime_type) ||
82 !net::IsSupportedMimeType(mime_type);
86 const std::string& mime_type) {
88 net::GetExtensionsForMimeType(mime_type, &extensions);
85 GetMediaExtensionList( const std::string& mime_type) argument
/external/chromium_org/chrome/common/extensions/manifest_handlers/
H A Dmime_types_handler.cc58 void MimeTypesHandler::AddMIMEType(const std::string& mime_type) { argument
59 mime_type_set_.insert(mime_type);
62 bool MimeTypesHandler::CanHandleMIMEType(const std::string& mime_type) const {
63 return mime_type_set_.find(mime_type) != mime_type_set_.end();
/external/chromium_org/chrome/renderer/extensions/
H A Dextension_localization_peer_unittest.cc92 const std::string& mime_type,
95 original_peer_.get(), sender_.get(), mime_type, request_url);
91 CreateExtensionLocalizationPeer( const std::string& mime_type, const GURL& request_url) argument
/external/chromium_org/chrome/utility/media_galleries/
H A Dmedia_metadata_parser.cc125 ImageMetadataExtractor* extractor, const std::string& mime_type,
129 metadata.mime_type = mime_type;
159 const std::string& mime_type,
162 mime_type_(mime_type),
172 metadata->mime_type = mime_type_;
124 FinishParseImageMetadata( ImageMetadataExtractor* extractor, const std::string& mime_type, MediaMetadataParser::MetadataCallback callback, bool extract_success) argument
158 MediaMetadataParser(media::DataSource* source, const std::string& mime_type, bool get_attached_images) argument
/external/chromium_org/chromeos/dbus/
H A Dnfc_record_client.h56 dbus::Property<std::string> mime_type; member in struct:chromeos::NfcRecordClient::Properties
/external/chromium_org/components/metrics/
H A Dtest_metrics_service_client.cc63 const std::string& mime_type,
61 CreateUploader( const std::string& server_url, const std::string& mime_type, const base::Callback<void(int)>& on_upload_complete) argument

Completed in 589 milliseconds

123456789