Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4445)

Unified Diff: chrome/browser/download/download_prefs.h

Issue 390983004: Merge 281172 "Windows: Add an "Open in Adobe Reader" menu item f..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2062/src/
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_prefs.h
===================================================================
--- chrome/browser/download/download_prefs.h (revision 283043)
+++ chrome/browser/download/download_prefs.h (working copy)
@@ -73,6 +73,15 @@
// 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 @@
AutoOpenCompareFunctor> AutoOpenSet;
AutoOpenSet auto_open_;
+#if defined(OS_WIN)
+ bool should_open_pdf_in_adobe_reader_;
+#endif
+
DISALLOW_COPY_AND_ASSIGN(DownloadPrefs);
};
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | chrome/browser/download/download_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698