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

Side by Side Diff: chrome/browser/plugins/plugin_metadata.h

Issue 10918174: Remove PluginGroup (Closed) Base URL: http://git.chromium.org/chromium/src.git@remove_async_plugin_finder
Patch Set: fix conflicts Created 8 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PLUGINS_PLUGIN_METADATA_H_ 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_
6 #define CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_ 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "base/version.h" 11 #include "base/version.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 13
14 namespace webkit { 14 namespace webkit {
15 struct WebPluginInfo; 15 struct WebPluginInfo;
16 } 16 }
17 17
18 class PluginMetadata { 18 class PluginMetadata {
19 public: 19 public:
20 // Information about a certain version of the plug-in. 20 // Information about a certain version of the plug-in.
21 enum SecurityStatus { 21 enum SecurityStatus {
22 SECURITY_STATUS_UP_TO_DATE, 22 SECURITY_STATUS_UP_TO_DATE,
23 SECURITY_STATUS_OUT_OF_DATE, 23 SECURITY_STATUS_OUT_OF_DATE,
24 SECURITY_STATUS_REQUIRES_AUTHORIZATION, 24 SECURITY_STATUS_REQUIRES_AUTHORIZATION,
25 }; 25 };
26 26
27 // Used by about:plugins to disable Reader plugin when internal PDF viewer is
28 // enabled.
29 static const char kAdobeReaderGroupName[];
30 static const char kJavaGroupName[];
31 static const char kQuickTimeGroupName[];
32 static const char kShockwaveGroupName[];
33 static const char kRealPlayerGroupName[];
34 static const char kSilverlightGroupName[];
35 static const char kWindowsMediaPlayerGroupName[];
36
27 PluginMetadata(const std::string& identifier, 37 PluginMetadata(const std::string& identifier,
28 const string16& name, 38 const string16& name,
29 bool url_for_display, 39 bool url_for_display,
30 const GURL& plugin_url, 40 const GURL& plugin_url,
31 const GURL& help_url, 41 const GURL& help_url,
32 const string16& group_name_matcher); 42 const string16& group_name_matcher);
33 ~PluginMetadata(); 43 ~PluginMetadata();
34 44
35 // Unique identifier for the plug-in. 45 // Unique identifier for the plug-in.
36 const std::string& identifier() const { return identifier_; } 46 const std::string& identifier() const { return identifier_; }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 std::string identifier_; 81 std::string identifier_;
72 string16 name_; 82 string16 name_;
73 string16 group_name_matcher_; 83 string16 group_name_matcher_;
74 bool url_for_display_; 84 bool url_for_display_;
75 GURL plugin_url_; 85 GURL plugin_url_;
76 GURL help_url_; 86 GURL help_url_;
77 std::map<Version, SecurityStatus, VersionComparator> versions_; 87 std::map<Version, SecurityStatus, VersionComparator> versions_;
78 }; 88 };
79 89
80 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_ 90 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_infobar_delegates.cc ('k') | chrome/browser/plugins/plugin_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698