Index: chrome/browser/download/chrome_download_manager_delegate.h |
diff --git a/chrome/browser/download/chrome_download_manager_delegate.h b/chrome/browser/download/chrome_download_manager_delegate.h |
index d23337d56bb3ead7e2323150b6c003705f0638e2..7fd81d944e52321596737dca30439a2de60a93d4 100644 |
--- a/chrome/browser/download/chrome_download_manager_delegate.h |
+++ b/chrome/browser/download/chrome_download_manager_delegate.h |
@@ -11,6 +11,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include "chrome/browser/download/download_path_reservation_tracker.h" |
#include "chrome/browser/download/download_target_determiner_delegate.h" |
+#include "chrome/browser/download/download_target_info.h" |
#include "chrome/browser/safe_browsing/download_protection_service.h" |
#include "content/public/browser/download_danger_type.h" |
#include "content/public/browser/download_item.h" |
@@ -95,6 +96,11 @@ class ChromeDownloadManagerDelegate |
const content::CheckForFileExistenceCallback& callback) OVERRIDE; |
virtual std::string ApplicationClientIdForFileScanning() const OVERRIDE; |
+ // Opens a download using the platform handler. DownloadItem::OpenDownload, |
+ // which ends up being handled by OpenDownload(), will open a download in the |
+ // browser if doing so is preferred. |
+ void OpenDownloadUsingPlatformHandler(content::DownloadItem* download); |
+ |
DownloadPrefs* download_prefs() { return download_prefs_.get(); } |
protected: |
@@ -131,6 +137,9 @@ class ChromeDownloadManagerDelegate |
content::DownloadItem* download, |
const base::FilePath& suggested_virtual_path, |
const CheckDownloadUrlCallback& callback) OVERRIDE; |
+ virtual void GetFileMimeType( |
+ const base::FilePath& path, |
+ const GetFileMimeTypeCallback& callback) OVERRIDE; |
private: |
friend class base::RefCountedThreadSafe<ChromeDownloadManagerDelegate>; |
@@ -157,6 +166,11 @@ class ChromeDownloadManagerDelegate |
void ReturnNextId(const content::DownloadIdCallback& callback); |
+ void OnDownloadTargetDetermined( |
+ int32 download_id, |
+ const content::DownloadTargetCallback& callback, |
+ scoped_ptr<DownloadTargetInfo> target_info); |
+ |
Profile* profile_; |
uint32 next_download_id_; |
IdCallbackVector id_callbacks_; |