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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « webkit/plugins/ppapi/url_request_info_util.cc ('k') | webkit/plugins/webplugininfo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 string16& fake_name,
56 const FilePath& fake_path, 56 const base::FilePath& fake_path,
57 const string16& fake_version, 57 const string16& fake_version,
58 const string16& fake_desc); 58 const 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 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 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 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 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
« no previous file with comments | « webkit/plugins/ppapi/url_request_info_util.cc ('k') | webkit/plugins/webplugininfo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698