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..a48198c8d733a6f18d4bd054cf862cf4da364050 |
--- /dev/null |
+++ b/chrome/browser/ui/pdf/adobe_reader_info_win.h |
@@ -0,0 +1,45 @@ |
+// 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" |
+ |
+namespace content { |
+class WebContents; |
+} |
+ |
+#if defined(ENABLE_PLUGIN_INSTALLATION) |
+struct AdobeReaderPluginInfo { |
+ bool is_installed; |
+ bool is_enabled; // Only valid in the context of a given WebContents. |
+ 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 |web_contents| is NULL, then the plugin's enable status cannot be |
+// determined. |
+void GetAdobeReaderPluginInfoAsync( |
+ content::WebContents* web_contents, |
+ const GetAdobeReaderPluginInfoCallback& callback); |
+ |
+// Fetches information about the Adobe Reader plugin synchronously. |
+// Returns true if the plugin info is not stale. |
+// If |web_contents| is NULL, then the plugin's enable status cannot be |
+// determined. |
+bool GetAdobeReaderPluginInfo(content::WebContents* web_contents, |
jam
2014/06/09 19:49:09
nit: above and here, i think it would be clearer i
Lei Zhang
2014/06/12 05:04:26
Done.
|
+ AdobeReaderPluginInfo* reader_info); |
+#endif |
+ |
+// Returns whether Adobe Reader is the default PDF viewer. |
+bool IsAdobeReaderDefaultPDFViewer(); |
+ |
+#endif // CHROME_BROWSER_UI_PDF_ADOBE_READER_INFO_WIN_H_ |