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

Unified Diff: chrome/browser/ui/pdf/adobe_reader_info_win.h

Issue 324593004: Windows: Add an "Open in Adobe Reader" menu item for PDF files in the download shelf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix merge Created 6 years, 6 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/ui/pdf/adobe_reader_info_win.h
diff --git a/chrome/browser/ui/pdf/adobe_reader_info_win.h b/chrome/browser/ui/pdf/adobe_reader_info_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..9666d8bfd0fae1a98840f61d685bb1a5d572a7ee
--- /dev/null
+++ b/chrome/browser/ui/pdf/adobe_reader_info_win.h
@@ -0,0 +1,48 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_PDF_ADOBE_READER_INFO_WIN_H_
+#define CHROME_BROWSER_UI_PDF_ADOBE_READER_INFO_WIN_H_
+
+#include "base/basictypes.h"
+#include "base/callback_forward.h"
+#include "content/public/common/webplugininfo.h"
+
+class Profile;
+
+struct AdobeReaderPluginInfo {
+ bool is_installed;
+ bool is_enabled; // Only valid in the context of a given Profile.
+ bool is_secure; // Whether the plugin is up to date.
+ content::WebPluginInfo plugin_info;
+};
+
+typedef base::Callback<void(const AdobeReaderPluginInfo&)>
+ GetAdobeReaderPluginInfoCallback;
+
+// Fetches information about the Adobe Reader plugin asynchronously.
+// If |profile| is NULL, then the plugin's enable status cannot be
+// determined.
+void GetAdobeReaderPluginInfoAsync(
+ Profile* profile,
+ const GetAdobeReaderPluginInfoCallback& callback);
+
+// Fetches information about the Adobe Reader plugin synchronously.
+// Returns true if the plugin info is not stale.
+// If |profile| is NULL, then the plugin's enable status cannot be
+// determined.
+bool GetAdobeReaderPluginInfo(Profile* profile,
+ AdobeReaderPluginInfo* reader_info);
+
+// Returns true if Adobe Reader or Adobe Acrobat is the default viewer for the
+// .pdf extension.
+bool IsAdobeReaderDefaultPDFViewer();
+
+// If Adobe Reader or Adobe Acrobat is program associated with the .pdf viewer,
+// return true if the executable is up to date.
+// If Reader/Acrobat is not the default .pdf handler, return false.
+// This function does blocking I/O, since it needs to read from the disk.
+bool IsAdobeReaderUpToDate();
+
+#endif // CHROME_BROWSER_UI_PDF_ADOBE_READER_INFO_WIN_H_
« no previous file with comments | « chrome/browser/download/download_target_determiner.cc ('k') | chrome/browser/ui/pdf/adobe_reader_info_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698