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

Unified Diff: webkit/plugins/webplugininfo.h

Issue 7648017: Make WebPluginInfo more generic (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/npapi/webplugininfo.cc ('k') | webkit/plugins/webplugininfo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/webplugininfo.h
===================================================================
--- webkit/plugins/webplugininfo.h (revision 96217)
+++ webkit/plugins/webplugininfo.h (working copy)
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGININFO_H_
-#define WEBKIT_PLUGINS_NPAPI_WEBPLUGININFO_H_
+#ifndef WEBKIT_PLUGINS_WEBPLUGININFO_H_
+#define WEBKIT_PLUGINS_WEBPLUGININFO_H_
#include <string>
#include <vector>
@@ -12,10 +12,7 @@
#include "base/file_path.h"
namespace webkit {
-namespace npapi {
-// Describes a mime type entry for a plugin.
-// TODO(viettrungluu): This isn't NPAPI-specific. Move this somewhere else.
struct WebPluginMimeType {
WebPluginMimeType();
// A constructor for the common case of a single file extension and an ASCII
@@ -39,7 +36,7 @@
std::vector<string16> additional_param_values;
};
-// Describes an available NPAPI plugin.
+// Describes an available NPAPI or Pepper plugin.
struct WebPluginInfo {
// Defines the possible enabled state a plugin can have.
// The enum values actually represent a 3-bit bitfield :
@@ -67,6 +64,12 @@
POLICY_UNMANAGED = -1
};
+ enum PluginType {
+ PLUGIN_TYPE_NPAPI,
+ PLUGIN_TYPE_PEPPER_IN_PROCESS,
+ PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS
+ };
+
WebPluginInfo();
WebPluginInfo(const WebPluginInfo& rhs);
~WebPluginInfo();
@@ -95,12 +98,14 @@
// Enabled state of the plugin. See the EnabledStates enum.
int enabled;
+
+ // Plugin type. See the PluginType enum.
+ int type;
};
// Checks whether a plugin is enabled either by the user or by policy.
bool IsPluginEnabled(const WebPluginInfo& plugin);
-} // namespace npapi
} // namespace webkit
-#endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGININFO_H_
+#endif // WEBKIT_PLUGINS_WEBPLUGININFO_H_
« no previous file with comments | « webkit/plugins/npapi/webplugininfo.cc ('k') | webkit/plugins/webplugininfo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698