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

Side by Side Diff: content/public/common/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 unified diff | Download patch | Annotate | Revision Log
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 WEBKIT_PLUGINS_WEBPLUGININFO_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_WEBPLUGININFO_H_
6 #define WEBKIT_PLUGINS_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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "content/common/content_export.h"
13 14
14 namespace base { 15 namespace base {
15 class Version; 16 class Version;
16 } 17 }
17 18
18 namespace webkit { 19 namespace content {
19 20
20 struct WebPluginMimeType { 21 struct CONTENT_EXPORT WebPluginMimeType {
21 WebPluginMimeType(); 22 WebPluginMimeType();
22 // A constructor for the common case of a single file extension and an ASCII 23 // A constructor for the common case of a single file extension and an ASCII
23 // description. 24 // description.
24 WebPluginMimeType(const std::string& m, 25 WebPluginMimeType(const std::string& m,
25 const std::string& f, 26 const std::string& f,
26 const std::string& d); 27 const std::string& d);
27 ~WebPluginMimeType(); 28 ~WebPluginMimeType();
28 29
29 // The name of the mime type (e.g., "application/x-shockwave-flash"). 30 // The name of the mime type (e.g., "application/x-shockwave-flash").
30 std::string mime_type; 31 std::string mime_type;
31 32
32 // A list of all the file extensions for this mime type. 33 // A list of all the file extensions for this mime type.
33 std::vector<std::string> file_extensions; 34 std::vector<std::string> file_extensions;
34 35
35 // Description of the mime type. 36 // Description of the mime type.
36 base::string16 description; 37 base::string16 description;
37 38
38 // Extra parameters to include when instantiating the plugin. 39 // Extra parameters to include when instantiating the plugin.
39 std::vector<base::string16> additional_param_names; 40 std::vector<base::string16> additional_param_names;
40 std::vector<base::string16> additional_param_values; 41 std::vector<base::string16> additional_param_values;
41 }; 42 };
42 43
43 // Describes an available NPAPI or Pepper plugin. 44 // Describes an available NPAPI or Pepper plugin.
44 struct WebPluginInfo { 45 struct CONTENT_EXPORT WebPluginInfo {
45 enum PluginType { 46 enum PluginType {
46 PLUGIN_TYPE_NPAPI, 47 PLUGIN_TYPE_NPAPI,
47 PLUGIN_TYPE_PEPPER_IN_PROCESS, 48 PLUGIN_TYPE_PEPPER_IN_PROCESS,
48 PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS, 49 PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS,
49 PLUGIN_TYPE_PEPPER_UNSANDBOXED 50 PLUGIN_TYPE_PEPPER_UNSANDBOXED
50 }; 51 };
51 52
52 WebPluginInfo(); 53 WebPluginInfo();
53 WebPluginInfo(const WebPluginInfo& rhs); 54 WebPluginInfo(const WebPluginInfo& rhs);
54 ~WebPluginInfo(); 55 ~WebPluginInfo();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // A list of all the mime types that this plugin supports. 87 // A list of all the mime types that this plugin supports.
87 std::vector<WebPluginMimeType> mime_types; 88 std::vector<WebPluginMimeType> mime_types;
88 89
89 // Plugin type. See the PluginType enum. 90 // Plugin type. See the PluginType enum.
90 int type; 91 int type;
91 92
92 // When type is PLUGIN_TYPE_PEPPER_* this indicates the permission bits. 93 // When type is PLUGIN_TYPE_PEPPER_* this indicates the permission bits.
93 int32 pepper_permissions; 94 int32 pepper_permissions;
94 }; 95 };
95 96
96 } // namespace webkit 97 } // namespace content
97 98
98 #endif // WEBKIT_PLUGINS_WEBPLUGININFO_H_ 99 #endif // CONTENT_PUBLIC_COMMON_WEBPLUGININFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698