| Index: chrome/browser/download/download_item_model.h
|
| diff --git a/chrome/browser/download/download_item_model.h b/chrome/browser/download/download_item_model.h
|
| index 5a2c141ac5679a9574a37c83692566ff77391cff..05a1023f5c32b653a665c9e4e71539f078a632e1 100644
|
| --- a/chrome/browser/download/download_item_model.h
|
| +++ b/chrome/browser/download/download_item_model.h
|
| @@ -126,6 +126,18 @@ class DownloadItemModel {
|
| // Change what's returned by ShouldNotifyUI().
|
| void SetShouldNotifyUI(bool should_notify);
|
|
|
| + // Returns |true| if opening in the browser is preferred for this download. If
|
| + // |false|, the download should be opened with the system default application.
|
| + bool ShouldPreferOpeningInBrowser() const;
|
| +
|
| + // Change what's returned by ShouldPreferOpeningInBrowser to |preference|.
|
| + void SetShouldPreferOpeningInBrowser(bool preference);
|
| +
|
| + // Open the download using the platform handler for the download. The behavior
|
| + // of this method will be different from DownloadItem::OpenDownload() if
|
| + // ShouldPreferOpeningInBrowser().
|
| + void OpenUsingPlatformHandler();
|
| +
|
| content::DownloadItem* download() { return download_; }
|
|
|
| private:
|
|
|