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

Unified Diff: webkit/plugins/webplugininfo.h

Issue 19894003: Move webplugininfo.h to content/public. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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
Index: webkit/plugins/webplugininfo.h
===================================================================
--- webkit/plugins/webplugininfo.h (revision 212806)
+++ webkit/plugins/webplugininfo.h (working copy)
@@ -1,98 +0,0 @@
-// Copyright (c) 2011 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_PLUGINS_WEBPLUGININFO_H_
-#define WEBKIT_PLUGINS_WEBPLUGININFO_H_
-
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/files/file_path.h"
-
-namespace base {
-class Version;
-}
-
-namespace webkit {
-
-struct WebPluginMimeType {
- WebPluginMimeType();
- // A constructor for the common case of a single file extension and an ASCII
- // description.
- WebPluginMimeType(const std::string& m,
- const std::string& f,
- const std::string& d);
- ~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.
- base::string16 description;
-
- // Extra parameters to include when instantiating the plugin.
- std::vector<base::string16> additional_param_names;
- std::vector<base::string16> additional_param_values;
-};
-
-// Describes an available NPAPI or Pepper plugin.
-struct WebPluginInfo {
- enum PluginType {
- PLUGIN_TYPE_NPAPI,
- PLUGIN_TYPE_PEPPER_IN_PROCESS,
- PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS,
- PLUGIN_TYPE_PEPPER_UNSANDBOXED
- };
-
- WebPluginInfo();
- WebPluginInfo(const WebPluginInfo& rhs);
- ~WebPluginInfo();
- WebPluginInfo& operator=(const WebPluginInfo& rhs);
-
- // Special constructor only used during unit testing:
- WebPluginInfo(const base::string16& fake_name,
- const base::FilePath& fake_path,
- const base::string16& fake_version,
- const base::string16& fake_desc);
-
- bool is_pepper_plugin() const {
- return ((type == PLUGIN_TYPE_PEPPER_IN_PROCESS ) ||
- (type == PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS) ||
- (type == PLUGIN_TYPE_PEPPER_UNSANDBOXED));
- }
-
- // Parse a version string as used by a plug-in. This method is more lenient
- // in accepting weird version strings than base::Version::GetFromString()
- static void CreateVersionFromString(const base::string16& version_string,
- base::Version* parsed_version);
-
- // The name of the plugin (i.e. Flash).
- base::string16 name;
-
- // The path to the plugin file (DLL/bundle/library).
- base::FilePath path;
-
- // The version number of the plugin file (may be OS-specific)
- base::string16 version;
-
- // A description of the plugin that we get from its version info.
- base::string16 desc;
-
- // A list of all the mime types that this plugin supports.
- std::vector<WebPluginMimeType> mime_types;
-
- // Plugin type. See the PluginType enum.
- int type;
-
- // When type is PLUGIN_TYPE_PEPPER_* this indicates the permission bits.
- int32 pepper_permissions;
-};
-
-} // namespace webkit
-
-#endif // WEBKIT_PLUGINS_WEBPLUGININFO_H_

Powered by Google App Engine
This is Rietveld 408576698