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

Side by Side Diff: content/public/common/webplugininfo.h

Issue 374773002: Remove GTalk/O1D plugins and related code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « content/public/common/pepper_plugin_info.cc ('k') | content/zygote/zygote_main_linux.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_PUBLIC_COMMON_WEBPLUGININFO_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_WEBPLUGININFO_H_
6 #define CONTENT_PUBLIC_COMMON_WEBPLUGININFO_H_ 6 #define CONTENT_PUBLIC_COMMON_WEBPLUGININFO_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 std::vector<base::string16> additional_param_names; 40 std::vector<base::string16> additional_param_names;
41 std::vector<base::string16> additional_param_values; 41 std::vector<base::string16> additional_param_values;
42 }; 42 };
43 43
44 // Describes an available NPAPI or Pepper plugin. 44 // Describes an available NPAPI or Pepper plugin.
45 struct CONTENT_EXPORT WebPluginInfo { 45 struct CONTENT_EXPORT WebPluginInfo {
46 enum PluginType { 46 enum PluginType {
47 PLUGIN_TYPE_NPAPI, 47 PLUGIN_TYPE_NPAPI,
48 PLUGIN_TYPE_PEPPER_IN_PROCESS, 48 PLUGIN_TYPE_PEPPER_IN_PROCESS,
49 PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS, 49 PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS,
50 PLUGIN_TYPE_PEPPER_UNSANDBOXED,
51 PLUGIN_TYPE_BROWSER_PLUGIN 50 PLUGIN_TYPE_BROWSER_PLUGIN
52 }; 51 };
53 52
54 WebPluginInfo(); 53 WebPluginInfo();
55 WebPluginInfo(const WebPluginInfo& rhs); 54 WebPluginInfo(const WebPluginInfo& rhs);
56 ~WebPluginInfo(); 55 ~WebPluginInfo();
57 WebPluginInfo& operator=(const WebPluginInfo& rhs); 56 WebPluginInfo& operator=(const WebPluginInfo& rhs);
58 57
59 // Special constructor only used during unit testing: 58 // Special constructor only used during unit testing:
60 WebPluginInfo(const base::string16& fake_name, 59 WebPluginInfo(const base::string16& fake_name,
61 const base::FilePath& fake_path, 60 const base::FilePath& fake_path,
62 const base::string16& fake_version, 61 const base::string16& fake_version,
63 const base::string16& fake_desc); 62 const base::string16& fake_desc);
64 63
65 bool is_pepper_plugin() const { 64 bool is_pepper_plugin() const {
66 return ((type == PLUGIN_TYPE_PEPPER_IN_PROCESS ) || 65 return ((type == PLUGIN_TYPE_PEPPER_IN_PROCESS ) ||
67 (type == PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS) || 66 (type == PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS));
68 (type == PLUGIN_TYPE_PEPPER_UNSANDBOXED));
69 } 67 }
70 68
71 // Parse a version string as used by a plugin. This method is more lenient 69 // Parse a version string as used by a plugin. This method is more lenient
72 // in accepting weird version strings than base::Version::GetFromString() 70 // in accepting weird version strings than base::Version::GetFromString()
73 static void CreateVersionFromString(const base::string16& version_string, 71 static void CreateVersionFromString(const base::string16& version_string,
74 base::Version* parsed_version); 72 base::Version* parsed_version);
75 73
76 // The name of the plugin (i.e. Flash). 74 // The name of the plugin (i.e. Flash).
77 base::string16 name; 75 base::string16 name;
78 76
(...skipping 12 matching lines...) Expand all
91 // Plugin type. See the PluginType enum. 89 // Plugin type. See the PluginType enum.
92 int type; 90 int type;
93 91
94 // When type is PLUGIN_TYPE_PEPPER_* this indicates the permission bits. 92 // When type is PLUGIN_TYPE_PEPPER_* this indicates the permission bits.
95 int32 pepper_permissions; 93 int32 pepper_permissions;
96 }; 94 };
97 95
98 } // namespace content 96 } // namespace content
99 97
100 #endif // CONTENT_PUBLIC_COMMON_WEBPLUGININFO_H_ 98 #endif // CONTENT_PUBLIC_COMMON_WEBPLUGININFO_H_
OLDNEW
« no previous file with comments | « content/public/common/pepper_plugin_info.cc ('k') | content/zygote/zygote_main_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698