summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webplugininfo.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-24 17:17:45 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-24 17:17:45 +0000
commit706f2dcd21c3628dfdda1448235fb4b46c1bab39 (patch)
tree8775eecc3423aea3813b6f1263c48af8a5f97ff5 /webkit/glue/webplugininfo.h
parentcf62075e20a12d43c9a9de07411f4c0c1f47336d (diff)
downloadchromium_src-706f2dcd21c3628dfdda1448235fb4b46c1bab39.zip
chromium_src-706f2dcd21c3628dfdda1448235fb4b46c1bab39.tar.gz
chromium_src-706f2dcd21c3628dfdda1448235fb4b46c1bab39.tar.bz2
Chrome side of using WebPluginListBuilder.
I also broke glue/webplugininfo.h out of glue/webplugin.h as part of this change. Eventually, glue/webplugin.h will go away and be moved into the WebKit API, but the structures left in glue/webplugininfo.h need to remain since they are used extensively throughout Chrome. BUG=10922 R=dglazkov Review URL: http://codereview.chromium.org/93116 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14438 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webplugininfo.h')
-rw-r--r--webkit/glue/webplugininfo.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/webkit/glue/webplugininfo.h b/webkit/glue/webplugininfo.h
new file mode 100644
index 0000000..77c59ea
--- /dev/null
+++ b/webkit/glue/webplugininfo.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_GLUE_WEBPLUGININFO_H_
+#define WEBKIT_GLUE_WEBPLUGININFO_H_
+
+#include <string>
+#include <vector>
+
+#include "base/basictypes.h"
+#include "base/file_path.h"
+
+// Describes a mime type entry for a plugin.
+struct WebPluginMimeType {
+ // The name of the mime type (e.g., "application/x-shockwave-flash").
+ std::string mime_type;
+
+ // A list of all the file extensions for this mime type.
+ std::vector<std::string> file_extensions;
+
+ // Description of the mime type.
+ std::wstring description;
+};
+
+// Describes an available NPAPI plugin.
+struct WebPluginInfo {
+ // The name of the plugin (i.e. Flash).
+ std::wstring name;
+
+ // The path to the plugin file (DLL/bundle/library).
+ FilePath path;
+
+ // The version number of the plugin file (may be OS-specific)
+ std::wstring version;
+
+ // A description of the plugin that we get from its version info.
+ std::wstring desc;
+
+ // A list of all the mime types that this plugin supports.
+ std::vector<WebPluginMimeType> mime_types;
+};
+
+#endif // WEBKIT_GLUE_WEBPLUGININFO_H_