Home
last modified time | relevance | path

Searched refs:mime_types (Results 1 – 25 of 52) sorted by relevance

123

/external/chromium_org/chrome/browser/chromeos/extensions/file_manager/
Dprivate_api_tasks.cc50 std::set<std::string> mime_types; in GetUniqueMimeTypes() local
55 mime_types.insert(mime_type); in GetUniqueMimeTypes()
57 return mime_types; in GetUniqueMimeTypes()
163 scoped_ptr<std::vector<std::string> > mime_types) { in OnMimeTypesCollected()
166 path_mime_set.insert(std::make_pair(local_paths_[i], (*mime_types)[i])); in OnMimeTypesCollected()
210 std::set<std::string> mime_types; in RunSync() local
211 if (params->mime_types && !params->mime_types->empty()) { in RunSync()
212 if (params->mime_types->size() != params->file_urls.size()) in RunSync()
214 mime_types = GetUniqueMimeTypes(*params->mime_types); in RunSync()
223 if (suffixes.empty() && mime_types.empty()) { in RunSync()
[all …]
/external/chromium_org/extensions/common/manifest_handlers/
Dfile_handler_info.cc56 const base::ListValue* mime_types = NULL; in LoadFileHandler() local
58 !handler_info.GetList(keys::kFileHandlerTypes, &mime_types)) { in LoadFileHandler()
72 if ((!mime_types || mime_types->empty()) && in LoadFileHandler()
80 if (mime_types) { in LoadFileHandler()
82 for (size_t i = 0; i < mime_types->GetSize(); ++i) { in LoadFileHandler()
83 if (!mime_types->GetString(i, &type)) { in LoadFileHandler()
/external/chromium_org/content/public/common/
Dwebplugininfo.cc40 mime_types(rhs.mime_types), in WebPluginInfo()
52 mime_types = rhs.mime_types; in operator =()
66 mime_types(), in WebPluginInfo()
Dpepper_plugin_info.cc41 info.mime_types = mime_types; in ToWebPluginInfo()
Dpepper_plugin_info.h59 std::vector<WebPluginMimeType> mime_types; member
/external/chromium_org/content/common/
Dplugin_list.cc133 std::vector<std::string> mime_types, file_extensions; in ParseMimeTypes() local
135 base::SplitString(mime_types_str, '|', &mime_types); in ParseMimeTypes()
141 if (mime_types.empty()) in ParseMimeTypes()
144 for (size_t i = 0; i < mime_types.size(); ++i) { in ParseMimeTypes()
146 mime_type.mime_type = base::StringToLowerASCII(mime_types[i]); in ParseMimeTypes()
227 for (size_t i = 0; i < plugin_info->mime_types.size(); ++i) { in LoadPluginIntoPluginList()
231 const std::string &mime_type = plugin_info->mime_types[i].mime_type; in LoadPluginIntoPluginList()
374 for (size_t i = 0; i < plugin.mime_types.size(); ++i) { in SupportsType()
375 const WebPluginMimeType& mime_info = plugin.mime_types[i]; in SupportsType()
388 for (size_t i = 0; i < plugin.mime_types.size(); ++i) { in SupportsExtension()
[all …]
Dpepper_plugin_list.cc108 plugin.mime_types.push_back(mime_type); in ComputePluginsFromCommandLine()
141 pepper_info->mime_types = webplugin_info.mime_types; in MakePepperPluginInfo()
Dplugin_list_mac.mm51 info.mime_types.begin(); i != info.mime_types.end(); ++i) {
128 NSDictionary* mime_types = GetMIMETypes(bundle);
129 if (!mime_types)
132 for (NSString* mime_type in [mime_types allKeys]) {
133 NSDictionary* mime_dict = [mime_types objectForKey:mime_type];
157 info->mime_types.push_back(mime);
Dplugin_list_win.cc225 for (size_t i = 0; i < plugin1.mime_types.size(); ++i) { in HaveSharedMimeType()
226 for (size_t j = 0; j < plugin2.mime_types.size(); ++j) { in HaveSharedMimeType()
227 if (plugin1.mime_types[i].mime_type == plugin2.mime_types[j].mime_type) in HaveSharedMimeType()
291 &info->mime_types)) { in ReadWebPluginInfo()
/external/chromium_org/chrome/common/
Dchrome_content_client.cc148 pdf.mime_types.push_back(pdf_mime_type); in ComputeBuiltInPlugins()
158 pdf.mime_types.push_back(pdf_mime_type); in ComputeBuiltInPlugins()
159 pdf.mime_types.push_back(print_preview_pdf_mime_type); in ComputeBuiltInPlugins()
182 nacl.mime_types.push_back(nacl_mime_type); in ComputeBuiltInPlugins()
186 nacl.mime_types.push_back(pnacl_mime_type); in ComputeBuiltInPlugins()
209 o1d.mime_types.push_back(o1d_mime_type); in ComputeBuiltInPlugins()
230 effects.mime_types.push_back(effects_mime_type); in ComputeBuiltInPlugins()
249 gtalk.mime_types.push_back(gtalk_mime_type); in ComputeBuiltInPlugins()
296 widevine_cdm.mime_types.push_back(widevine_cdm_mime_type); in ComputeBuiltInPlugins()
319 info.mime_types.push_back(remoting_mime_type); in ComputeBuiltInPlugins()
[all …]
/external/chromium_org/chrome/browser/plugins/
Dplugin_finder_unittest.cc39 const base::ListValue* mime_types = NULL; in TEST() local
40 if (plugin->GetList("mime_types", &mime_types)) { in TEST()
41 for (base::ListValue::const_iterator mime_type_it = mime_types->begin(); in TEST()
42 mime_type_it != mime_types->end(); ++mime_type_it) { in TEST()
Dplugin_info_message_filter.cc260 const std::vector<content::WebPluginMimeType>& mime_types = in OnIsInternalPluginAvailableForMimeType() local
261 plugin.mime_types; in OnIsInternalPluginAvailableForMimeType()
262 for (size_t j = 0; j < mime_types.size(); ++j) { in OnIsInternalPluginAvailableForMimeType()
263 if (mime_types[j].mime_type == mime_type) { in OnIsInternalPluginAvailableForMimeType()
270 *additional_param_names = mime_types[j].additional_param_names; in OnIsInternalPluginAvailableForMimeType()
271 *additional_param_values = mime_types[j].additional_param_values; in OnIsInternalPluginAvailableForMimeType()
400 std::vector<std::string> mime_types; in FindEnabledPlugin() local
402 url, mime_type, allow_wildcard, &matching_plugins, &mime_types); in FindEnabledPlugin()
431 *actual_mime_type = mime_types[i]; in FindEnabledPlugin()
Dplugin_finder.cc58 const base::ListValue* mime_types = NULL; in LoadMimeTypes() local
61 if (!plugin_dict->GetList(list_key, &mime_types)) in LoadMimeTypes()
65 for (base::ListValue::const_iterator mime_type_it = mime_types->begin(); in LoadMimeTypes()
66 mime_type_it != mime_types->end(); ++mime_type_it) { in LoadMimeTypes()
294 for (size_t i = 0; i < plugin.mime_types.size(); ++i) in GetPluginMetadata()
295 metadata->AddMatchingMimeType(plugin.mime_types[i].mime_type); in GetPluginMetadata()
Dplugin_metadata.cc66 for (; j < plugin.mime_types.size(); ++j) { in MatchesPlugin()
67 if (plugin.mime_types[j].mime_type == matching_mime_types_[i]) in MatchesPlugin()
70 if (j == plugin.mime_types.size()) in MatchesPlugin()
/external/chromium_org/chrome/browser/extensions/api/file_system/
Dfile_system_api_unittest.cc30 const std::string& mime_types, in BuildAcceptOption() argument
37 if (!mime_types.empty()) { in BuildAcceptOption()
38 option->mime_types.reset(new std::vector<std::string>()); in BuildAcceptOption()
39 base::SplitString(mime_types, ',', option->mime_types.get()); in BuildAcceptOption()
/external/chromium_org/athena/main/
Dathena_content_client.cc44 pdf.mime_types.push_back(pdf_mime_type); in AddPepperPlugins()
45 pdf.mime_types.push_back(print_preview_pdf_mime_type); in AddPepperPlugins()
/external/chromium_org/chrome/browser/extensions/
Dplugin_manager.cc100 info.mime_types.push_back(mime_type_info); in OnExtensionLoaded()
185 for (mime_iter = pepper_info->mime_types.begin(); in UpdatePluginListWithNaClModules()
186 mime_iter != pepper_info->mime_types.end(); ++mime_iter) { in UpdatePluginListWithNaClModules()
206 info.mime_types.push_back(mime_type_info); in UpdatePluginListWithNaClModules()
/external/chromium_org/apps/
Dlauncher.cc196 void OnMimeTypesCollected(scoped_ptr<std::vector<std::string> > mime_types) { in OnMimeTypesCollected() argument
197 DCHECK(file_paths_.size() == mime_types->size()); in OnMimeTypesCollected()
200 for (size_t i = 0; i < mime_types->size(); ++i) { in OnMimeTypesCollected()
202 !(*mime_types)[i].empty() ? (*mime_types)[i] : kFallbackMimeType; in OnMimeTypesCollected()
/external/chromium_org/extensions/browser/api/app_runtime/
Dapp_runtime_api.cc96 const std::vector<std::string>& mime_types, in DispatchOnLaunchedEventWithFileEntries() argument
103 DCHECK(file_entries.size() == mime_types.size()); in DispatchOnLaunchedEventWithFileEntries()
108 launch_item->SetString("mimeType", mime_types[i]); in DispatchOnLaunchedEventWithFileEntries()
/external/chromium_org/content/browser/
Dplugin_service_impl_browsertest.cc68 ASSERT_TRUE(info.mime_types.size()); in SetPluginInfo()
69 ASSERT_EQ(kNPAPITestPluginMimeType, info.mime_types[0].mime_type); in SetPluginInfo()
262 ASSERT_TRUE(info.mime_types.size()); in SetPluginInfo()
263 ASSERT_EQ(kNPAPITestPluginMimeType, info.mime_types[0].mime_type); in SetPluginInfo()
/external/chromium_org/chrome/browser/ui/pdf/
Dadobe_reader_info_win.cc80 if (std::find_if(plugin.mime_types.begin(), plugin.mime_types.end(), in GetReaderPlugin()
81 IsPdfMimeType) == plugin.mime_types.end()) in GetReaderPlugin()
/external/chromium_org/extensions/shell/common/
Dshell_content_client.cc62 nacl.mime_types.push_back(nacl_mime_type); in AddPepperPlugins()
66 nacl.mime_types.push_back(pnacl_mime_type); in AddPepperPlugins()
/external/chromium_org/ppapi/native_client/tools/browser_tester/
Dbrowser_tester.py236 mime_types = {}
237 for ext, mime_type in options.mime_types:
238 mime_types['.' + ext] = mime_type
248 mime_types,
/external/chromium_org/chrome/browser/extensions/api/file_handlers/
Dmime_util_unittest.cc36 scoped_ptr<std::vector<std::string> > mime_types) { in OnMimeTypesCollected()
37 *output = *mime_types; in OnMimeTypesCollected()
/external/chromium_org/chrome/browser/ui/webui/
Dplugins_ui.cc393 base::ListValue* mime_types = new base::ListValue(); in PluginsLoaded() local
395 group_plugin.mime_types; in PluginsLoaded()
410 mime_types->Append(mime_type); in PluginsLoaded()
412 plugin_file->Set("mimeTypes", mime_types); in PluginsLoaded()

123