summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_prefs.h
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-03 05:49:07 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-03 05:49:07 +0000
commit6abda2beaab65557677190183486491d01e4de37 (patch)
treef83d237daf9cdcd88a8feef8de5ac0e8def2e771 /chrome/browser/download/download_prefs.h
parente70238a66522e04554fb688078b842d9d9b5937f (diff)
downloadchromium_src-6abda2beaab65557677190183486491d01e4de37.zip
chromium_src-6abda2beaab65557677190183486491d01e4de37.tar.gz
chromium_src-6abda2beaab65557677190183486491d01e4de37.tar.bz2
Windows: Add an "Open in Adobe Reader" menu item for PDF files in the download shelf.
BUG=370746 Review URL: https://codereview.chromium.org/324593004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281172 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_prefs.h')
-rw-r--r--chrome/browser/download/download_prefs.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/download/download_prefs.h b/chrome/browser/download/download_prefs.h
index eca19d3..8d3db57 100644
--- a/chrome/browser/download/download_prefs.h
+++ b/chrome/browser/download/download_prefs.h
@@ -73,6 +73,15 @@ class DownloadPrefs {
// Disables auto-open based on file extension.
void DisableAutoOpenBasedOnExtension(const base::FilePath& file_name);
+#if defined(OS_WIN)
+ // Store the user preference to disk. If |should_open| is true, also disable
+ // the built-in PDF plugin. If |should_open| is false, enable the PDF plugin.
+ void SetShouldOpenPdfInAdobeReader(bool should_open);
+
+ // Return whether the user prefers to open PDF downloads in Adobe Reader.
+ bool ShouldOpenPdfInAdobeReader() const;
+#endif
+
void ResetAutoOpen();
private:
@@ -94,6 +103,10 @@ class DownloadPrefs {
AutoOpenCompareFunctor> AutoOpenSet;
AutoOpenSet auto_open_;
+#if defined(OS_WIN)
+ bool should_open_pdf_in_adobe_reader_;
+#endif
+
DISALLOW_COPY_AND_ASSIGN(DownloadPrefs);
};