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

Side by Side Diff: webkit/plugins/webplugininfo.h

Issue 13219005: Replace string16 with base::string16 in src/webkit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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 WEBKIT_PLUGINS_WEBPLUGININFO_H_
6 #define WEBKIT_PLUGINS_WEBPLUGININFO_H_ 6 #define WEBKIT_PLUGINS_WEBPLUGININFO_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 const std::string& d); 23 const std::string& d);
24 ~WebPluginMimeType(); 24 ~WebPluginMimeType();
25 25
26 // The name of the mime type (e.g., "application/x-shockwave-flash"). 26 // The name of the mime type (e.g., "application/x-shockwave-flash").
27 std::string mime_type; 27 std::string mime_type;
28 28
29 // A list of all the file extensions for this mime type. 29 // A list of all the file extensions for this mime type.
30 std::vector<std::string> file_extensions; 30 std::vector<std::string> file_extensions;
31 31
32 // Description of the mime type. 32 // Description of the mime type.
33 string16 description; 33 base::string16 description;
34 34
35 // Extra parameters to include when instantiating the plugin. 35 // Extra parameters to include when instantiating the plugin.
36 std::vector<string16> additional_param_names; 36 std::vector<base::string16> additional_param_names;
37 std::vector<string16> additional_param_values; 37 std::vector<base::string16> additional_param_values;
38 }; 38 };
39 39
40 // Describes an available NPAPI or Pepper plugin. 40 // Describes an available NPAPI or Pepper plugin.
41 struct WEBKIT_PLUGINS_EXPORT WebPluginInfo { 41 struct WEBKIT_PLUGINS_EXPORT WebPluginInfo {
42 enum PluginType { 42 enum PluginType {
43 PLUGIN_TYPE_NPAPI, 43 PLUGIN_TYPE_NPAPI,
44 PLUGIN_TYPE_PEPPER_IN_PROCESS, 44 PLUGIN_TYPE_PEPPER_IN_PROCESS,
45 PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS, 45 PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS,
46 PLUGIN_TYPE_PEPPER_UNSANDBOXED 46 PLUGIN_TYPE_PEPPER_UNSANDBOXED
47 }; 47 };
48 48
49 WebPluginInfo(); 49 WebPluginInfo();
50 WebPluginInfo(const WebPluginInfo& rhs); 50 WebPluginInfo(const WebPluginInfo& rhs);
51 ~WebPluginInfo(); 51 ~WebPluginInfo();
52 WebPluginInfo& operator=(const WebPluginInfo& rhs); 52 WebPluginInfo& operator=(const WebPluginInfo& rhs);
53 53
54 // Special constructor only used during unit testing: 54 // Special constructor only used during unit testing:
55 WebPluginInfo(const string16& fake_name, 55 WebPluginInfo(const base::string16& fake_name,
56 const base::FilePath& fake_path, 56 const base::FilePath& fake_path,
57 const string16& fake_version, 57 const base::string16& fake_version,
58 const string16& fake_desc); 58 const base::string16& fake_desc);
59 59
60 // The name of the plugin (i.e. Flash). 60 // The name of the plugin (i.e. Flash).
61 string16 name; 61 base::string16 name;
62 62
63 // The path to the plugin file (DLL/bundle/library). 63 // The path to the plugin file (DLL/bundle/library).
64 base::FilePath path; 64 base::FilePath path;
65 65
66 // The version number of the plugin file (may be OS-specific) 66 // The version number of the plugin file (may be OS-specific)
67 string16 version; 67 base::string16 version;
68 68
69 // A description of the plugin that we get from its version info. 69 // A description of the plugin that we get from its version info.
70 string16 desc; 70 base::string16 desc;
71 71
72 // A list of all the mime types that this plugin supports. 72 // A list of all the mime types that this plugin supports.
73 std::vector<WebPluginMimeType> mime_types; 73 std::vector<WebPluginMimeType> mime_types;
74 74
75 // Plugin type. See the PluginType enum. 75 // Plugin type. See the PluginType enum.
76 int type; 76 int type;
77 77
78 // When type is PLUGIN_TYPE_PEPPER_* this indicates the permission bits. 78 // When type is PLUGIN_TYPE_PEPPER_* this indicates the permission bits.
79 int32 pepper_permissions; 79 int32 pepper_permissions;
80 }; 80 };
81 81
82 // Checks whether a plugin is a Pepper plugin, enabled or disabled. 82 // Checks whether a plugin is a Pepper plugin, enabled or disabled.
83 WEBKIT_PLUGINS_EXPORT bool IsPepperPlugin(const WebPluginInfo& plugin); 83 WEBKIT_PLUGINS_EXPORT bool IsPepperPlugin(const WebPluginInfo& plugin);
84 84
85 WEBKIT_PLUGINS_EXPORT bool IsOutOfProcessPlugin(const WebPluginInfo& plugin); 85 WEBKIT_PLUGINS_EXPORT bool IsOutOfProcessPlugin(const WebPluginInfo& plugin);
86 86
87 } // namespace webkit 87 } // namespace webkit
88 88
89 #endif // WEBKIT_PLUGINS_WEBPLUGININFO_H_ 89 #endif // WEBKIT_PLUGINS_WEBPLUGININFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698