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

Side by Side Diff: chrome/browser/ui/pdf/adobe_reader_info_win.h

Issue 2518493002: Remove obsolete plugin state handling code. (Closed)
Patch Set: Removed unusued function. Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/pdf/adobe_reader_info_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_PDF_ADOBE_READER_INFO_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_PDF_ADOBE_READER_INFO_WIN_H_
6 #define CHROME_BROWSER_UI_PDF_ADOBE_READER_INFO_WIN_H_ 6 #define CHROME_BROWSER_UI_PDF_ADOBE_READER_INFO_WIN_H_
7 7
8 #include "base/callback_forward.h"
9 #include "content/public/common/webplugininfo.h"
10
11 class Profile; 8 class Profile;
12 9
13 struct AdobeReaderPluginInfo {
14 bool is_installed;
15 bool is_enabled; // Only valid in the context of a given Profile.
16 bool is_secure; // Whether the plugin is up to date.
17 content::WebPluginInfo plugin_info;
18 };
19
20 typedef base::Callback<void(const AdobeReaderPluginInfo&)>
21 GetAdobeReaderPluginInfoCallback;
22
23 // Fetches information about the Adobe Reader plugin asynchronously.
24 // If |profile| is NULL, then the plugin's enable status cannot be
25 // determined.
26 void GetAdobeReaderPluginInfoAsync(
27 Profile* profile,
28 const GetAdobeReaderPluginInfoCallback& callback);
29
30 // Fetches information about the Adobe Reader plugin synchronously.
31 // Returns true if the plugin info is not stale.
32 // If |profile| is NULL, then the plugin's enable status cannot be
33 // determined.
34 bool GetAdobeReaderPluginInfo(Profile* profile,
35 AdobeReaderPluginInfo* reader_info);
36
37 // Returns true if Adobe Reader or Adobe Acrobat is the default viewer for the 10 // Returns true if Adobe Reader or Adobe Acrobat is the default viewer for the
38 // .pdf extension. 11 // .pdf extension.
39 bool IsAdobeReaderDefaultPDFViewer(); 12 bool IsAdobeReaderDefaultPDFViewer();
40 13
41 // If Adobe Reader or Adobe Acrobat is program associated with the .pdf viewer, 14 // If Adobe Reader or Adobe Acrobat is program associated with the .pdf viewer,
42 // return true if the executable is up to date. 15 // return true if the executable is up to date.
43 // If Reader/Acrobat is not the default .pdf handler, return false. 16 // If Reader/Acrobat is not the default .pdf handler, return false.
44 // This function does blocking I/O, since it needs to read from the disk. 17 // This function does blocking I/O, since it needs to read from the disk.
45 bool IsAdobeReaderUpToDate(); 18 bool IsAdobeReaderUpToDate();
46 19
47 #endif // CHROME_BROWSER_UI_PDF_ADOBE_READER_INFO_WIN_H_ 20 #endif // CHROME_BROWSER_UI_PDF_ADOBE_READER_INFO_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('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