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

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

Issue 11418129: Matching IBM Java plugin using pattern matching. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
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/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 23 matching lines...) Expand all
34 static const char kRealPlayerGroupName[]; 34 static const char kRealPlayerGroupName[];
35 static const char kSilverlightGroupName[]; 35 static const char kSilverlightGroupName[];
36 static const char kWindowsMediaPlayerGroupName[]; 36 static const char kWindowsMediaPlayerGroupName[];
37 37
38 PluginMetadata(const std::string& identifier, 38 PluginMetadata(const std::string& identifier,
39 const string16& name, 39 const string16& name,
40 bool url_for_display, 40 bool url_for_display,
41 const GURL& plugin_url, 41 const GURL& plugin_url,
42 const GURL& help_url, 42 const GURL& help_url,
43 const string16& group_name_matcher, 43 const string16& group_name_matcher,
44 const std::string& language); 44 const std::string& language,
45 bool use_pattern_matching);
45 ~PluginMetadata(); 46 ~PluginMetadata();
46 47
47 // Unique identifier for the plug-in. 48 // Unique identifier for the plug-in.
48 const std::string& identifier() const { return identifier_; } 49 const std::string& identifier() const { return identifier_; }
49 50
50 // Human-readable name of the plug-in. 51 // Human-readable name of the plug-in.
51 const string16& name() const { return name_; } 52 const string16& name() const { return name_; }
52 53
53 // If |url_for_display| is false, |plugin_url| is the URL of the download page 54 // If |url_for_display| is false, |plugin_url| is the URL of the download page
54 // for the plug-in, which should be opened in a new tab. If it is true, 55 // for the plug-in, which should be opened in a new tab. If it is true,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 bool operator() (const Version& lhs, const Version& rhs) const; 91 bool operator() (const Version& lhs, const Version& rhs) const;
91 }; 92 };
92 93
93 std::string identifier_; 94 std::string identifier_;
94 string16 name_; 95 string16 name_;
95 string16 group_name_matcher_; 96 string16 group_name_matcher_;
96 bool url_for_display_; 97 bool url_for_display_;
97 GURL plugin_url_; 98 GURL plugin_url_;
98 GURL help_url_; 99 GURL help_url_;
99 std::string language_; 100 std::string language_;
101 bool use_pattern_matching_;
100 std::map<Version, SecurityStatus, VersionComparator> versions_; 102 std::map<Version, SecurityStatus, VersionComparator> versions_;
101 std::vector<std::string> all_mime_types_; 103 std::vector<std::string> all_mime_types_;
102 std::vector<std::string> matching_mime_types_; 104 std::vector<std::string> matching_mime_types_;
103 105
104 DISALLOW_COPY_AND_ASSIGN(PluginMetadata); 106 DISALLOW_COPY_AND_ASSIGN(PluginMetadata);
105 }; 107 };
106 108
107 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_ 109 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698