OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_PDF_ADOBE_READER_INFO_WIN_H_ | |
6 #define CHROME_BROWSER_UI_PDF_ADOBE_READER_INFO_WIN_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/callback_forward.h" | |
10 #include "content/public/common/webplugininfo.h" | |
11 | |
12 namespace content { | |
13 class WebContents; | |
14 } | |
15 | |
16 #if defined(ENABLE_PLUGIN_INSTALLATION) | |
17 struct AdobeReaderPluginInfo { | |
18 bool is_installed; | |
19 bool is_enabled; // Only valid in the context of a given WebContents. | |
20 bool is_secure; // Whether the plugin is up to date. | |
21 content::WebPluginInfo plugin_info; | |
22 }; | |
23 | |
24 typedef base::Callback<void(const AdobeReaderPluginInfo&)> | |
25 GetAdobeReaderPluginInfoCallback; | |
26 | |
27 // Fetches information about the Adobe Reader plugin asynchronously. | |
28 // If |web_contents| is NULL, then the plugin's enable status cannot be | |
29 // determined. | |
30 void GetAdobeReaderPluginInfoAsync( | |
31 content::WebContents* web_contents, | |
32 const GetAdobeReaderPluginInfoCallback& callback); | |
33 | |
34 // Fetches information about the Adobe Reader plugin synchronously. | |
35 // Returns true if the plugin info is not stale. | |
36 // If |web_contents| is NULL, then the plugin's enable status cannot be | |
37 // determined. | |
38 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.
| |
39 AdobeReaderPluginInfo* reader_info); | |
40 #endif | |
41 | |
42 // Returns whether Adobe Reader is the default PDF viewer. | |
43 bool IsAdobeReaderDefaultPDFViewer(); | |
44 | |
45 #endif // CHROME_BROWSER_UI_PDF_ADOBE_READER_INFO_WIN_H_ | |
OLD | NEW |