Searched defs:mime_type (Results 1 - 25 of 214) sorted by path

123456789

/external/chromium_org/android_webview/browser/net/
H A Dandroid_stream_reader_url_request_job.cc265 std::string* mime_type) const {
278 env, request(), input_stream_reader_wrapper_->input_stream(), mime_type);
318 std::string mime_type; local
319 if (GetMimeType(&mime_type) && !mime_type.empty()) {
322 content_type_header.append(mime_type);
/external/chromium_org/android_webview/browser/renderer_host/
H A Daw_resource_dispatcher_host_delegate.cc259 std::string mime_type; local
270 response_headers->GetMimeType(&mime_type);
288 mime_type,
/external/chromium_org/android_webview/native/
H A Dandroid_protocol_handler.cc73 std::string* mime_type) OVERRIDE;
173 std::string* mime_type) {
176 DCHECK(mime_type);
192 *mime_type = base::android::ConvertJavaStringToUTF8(returned_type);
169 GetMimeType( JNIEnv* env, net::URLRequest* request, android_webview::InputStream* stream, std::string* mime_type) argument
H A Daw_contents_io_thread_client_impl.cc333 const string& mime_type,
347 ConvertUTF8ToJavaString(env, mime_type);
329 NewDownload( const GURL& url, const string& user_agent, const string& content_disposition, const string& mime_type, int64 content_length) argument
/external/chromium_org/apps/
H A Dlauncher.cc201 const std::string mime_type = local
203 mime_types_.push_back(mime_type);
/external/chromium_org/chrome/browser/chromeos/
H A Dcustomization_document.cc615 std::string mime_type; local
619 source->GetResponseHeaders()->GetMimeType(&mime_type) &&
620 mime_type == "application/json" &&
/external/chromium_org/chrome/browser/chromeos/drive/
H A Dfake_file_system.cc56 const std::string& mime_type,
90 const std::string& mime_type,
54 OpenFile(const base::FilePath& file_path, OpenMode open_mode, const std::string& mime_type, const OpenFileCallback& callback) argument
88 CreateFile(const base::FilePath& file_path, bool is_exclusive, const std::string& mime_type, const FileOperationCallback& callback) argument
H A Dfile_cache.cc483 std::string mime_type; local
489 std::string(), &mime_type) ||
491 &mime_type)) {
493 if (net::MatchesMimeType("image/*", mime_type)) {
495 } else if (net::MatchesMimeType("video/*", mime_type)) {
497 } else if (net::MatchesMimeType("audio/*", mime_type)) {
504 if (net::GetPreferredExtensionForMimeType(mime_type, &extension))
507 net::GetExtensionsForMimeType(mime_type, &extensions);
H A Dfile_system.cc480 const std::string& mime_type,
485 file_path, is_exclusive, mime_type, callback);
970 const std::string& mime_type,
975 open_file_operation_->OpenFile(file_path, open_mode, mime_type, callback);
478 CreateFile(const base::FilePath& file_path, bool is_exclusive, const std::string& mime_type, const FileOperationCallback& callback) argument
968 OpenFile(const base::FilePath& file_path, OpenMode open_mode, const std::string& mime_type, const OpenFileCallback& callback) argument
H A Dsearch_metadata.cc169 std::string mime_type = entry.file_specific_info().content_mime_type(); local
170 return mime_type == drive::util::kGoogleDocumentMimeType ||
171 mime_type == drive::util::kGoogleSpreadsheetMimeType ||
172 mime_type == drive::util::kGooglePresentationMimeType ||
173 mime_type == drive::util::kGoogleDrawingMimeType;
H A Dwrite_on_cache_file.cc51 const std::string& mime_type,
53 WriteOnCacheFileAndReply(file_system, path, mime_type, callback,
59 const std::string& mime_type,
70 mime_type,
49 WriteOnCacheFile(FileSystemInterface* file_system, const base::FilePath& path, const std::string& mime_type, const WriteOnCacheFileCallback& callback) argument
57 WriteOnCacheFileAndReply(FileSystemInterface* file_system, const base::FilePath& path, const std::string& mime_type, const WriteOnCacheFileCallback& callback, const FileOperationCallback& reply) argument
/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_manager/
H A Dexternal_filesystem_apitest.cc156 const std::string& mime_type,
165 mime_type,
154 AddFileToDriveService( drive::FakeDriveService* fake_drive_service, const std::string& mime_type, const std::string& content, const std::string& parent_resource_id, const std::string& title, const std::string& last_modified, const std::string& last_viewed_by_me) argument
H A Dfile_manager_browsertest.cc132 const std::string& mime_type,
138 mime_type(mime_type),
146 std::string mime_type; member in struct:file_manager::__anon3165::TestEntryInfo
164 converter->RegisterStringField("mimeType", &TestEntryInfo::mime_type);
367 entry.mime_type,
408 const std::string& mime_type,
423 mime_type,
129 TestEntryInfo(EntryType type, const std::string& source_file_name, const std::string& target_path, const std::string& mime_type, SharedOption shared_option, const base::Time& last_modified_time) argument
405 CreateFile(const std::string& source_file_name, const std::string& parent_id, const std::string& target_name, const std::string& mime_type, bool shared_with_me, const base::Time& modification_time) argument
H A Dfile_tasks.cc174 const std::string& mime_type,
176 VLOG(1) << "Looking for default for MIME type: " << mime_type
179 if (!mime_type.empty()) {
185 mime_task_prefs->GetStringWithoutPathExpansion(mime_type, &task_id)) {
309 const std::string& mime_type = it->second; local
317 mime_type,
496 const std::string& mime_type = it->second; local
498 pref_service, mime_type, file_path.Extension());
173 GetDefaultTaskIdFromPrefs(const PrefService& pref_service, const std::string& mime_type, const std::string& suffix) argument
H A Dopen_util.cc95 const std::string& mime_type) {
97 path_mime_set.insert(std::make_pair(path, mime_type));
91 OpenFileWithMimeType(Profile* profile, const base::FilePath& path, const GURL& url, const base::Callback<void(bool)>& callback, const std::string& mime_type) argument
/external/chromium_org/chrome/browser/chromeos/file_system_provider/
H A Dfake_provided_file_system.cc63 std::string mime_type,
72 metadata->mime_type = mime_type;
111 metadata->mime_type = entry_it->second->metadata->mime_type;
58 AddEntry(const base::FilePath& entry_path, bool is_directory, const std::string& name, int64 size, base::Time modification_time, std::string mime_type, std::string contents) argument
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/fileapi/
H A Dexternal_file_url_request_job.cc106 const std::string& mime_type) {
108 mime_type_ = mime_type;
199 const std::string& mime_type) {
211 mime_type_ = mime_type;
287 bool ExternalFileURLRequestJob::GetMimeType(std::string* mime_type) const {
289 mime_type->assign(mime_type_);
290 return !mime_type->empty();
105 OnGotMimeTypeOnUIThread(Lifetime lifetime, const std::string& mime_type) argument
195 OnHelperResultObtained( net::Error error, const scoped_refptr<storage::FileSystemContext>& file_system_context, const storage::FileSystemURL& file_system_url, const std::string& mime_type) argument
H A Dexternal_file_url_request_job_unittest.cc259 std::string mime_type; local
260 request->GetMimeType(&mime_type);
261 EXPECT_EQ("audio/mpeg", mime_type);
284 std::string mime_type; local
285 request->GetMimeType(&mime_type);
286 EXPECT_EQ("audio/mpeg", mime_type);
/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/content_settings/
H A Dcontent_settings_browsertest.cc507 void RunLoadPepperPluginTest(const char* mime_type, bool expect_loaded) { argument
520 base::StringPrintf("?mimetype=%s", mime_type));
589 const char* mime_type) {
605 pepper_plugin.append(base::ASCIIToWide(mime_type));
607 pepper_plugin.append(mime_type);
586 BuildPepperPluginRegistration( const char* library_name, const char* display_name, const char* mime_type) argument
/external/chromium_org/chrome/browser/download/
H A Dchrome_download_manager_delegate.cc167 std::string mime_type; local
168 net::GetMimeTypeFromFile(path, &mime_type);
169 return mime_type;

Completed in 2610 milliseconds

123456789