Home | History | Annotate | Download | only in download

Lines Matching refs:download_item

19 #include "content/public/browser/download_item.h"
40 const DownloadItem& download_item) {
48 content::WebContents* web_contents = download_item.GetWebContents();
74 const DownloadItem& download_item) {
84 CreateExtensionInstallPrompt(profile, download_item),
85 WebstoreInstaller::GetAssociatedApproval(download_item)));
91 if (OffStoreInstallAllowedByPrefs(profile, download_item)) {
96 if (extensions::UserScript::IsURLUserScript(download_item.GetURL(),
97 download_item.GetMimeType())) {
98 installer->InstallUserScript(download_item.GetFullPath(),
99 download_item.GetURL());
102 WebstoreInstaller::GetAssociatedApproval(download_item) != NULL;
103 installer->set_original_mime_type(download_item.GetOriginalMimeType());
105 installer->set_download_url(download_item.GetURL());
108 installer->set_original_download_url(download_item.GetOriginalUrl());
110 installer->InstallCrx(download_item.GetFullPath());
116 bool IsExtensionDownload(const DownloadItem& download_item) {
117 if (download_item.GetTargetDisposition() ==
121 if (download_item.GetMimeType() == extensions::Extension::kMimeType ||
122 extensions::UserScript::IsURLUserScript(download_item.GetURL(),
123 download_item.GetMimeType())) {