diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-07 21:11:52 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-07 21:11:52 +0000 |
commit | f5cf88a21918e04a52c9aa7fc8e13ff24b7bf196 (patch) | |
tree | 3ec448569179f66949795be7dafc0cd2ec62f8d4 /webkit/glue/plugins/plugin_lib.h | |
parent | 886a17e3ef3bce4bed8318d9734e6a7ce09feee5 (diff) | |
download | chromium_src-f5cf88a21918e04a52c9aa7fc8e13ff24b7bf196.zip chromium_src-f5cf88a21918e04a52c9aa7fc8e13ff24b7bf196.tar.gz chromium_src-f5cf88a21918e04a52c9aa7fc8e13ff24b7bf196.tar.bz2 |
Refactor the pepper API implementation to make it more scalable as we add more
device types. Implement a stub of the 3D device API. Fix style in some of the
plugin related code.
TEST=run the pepper_test_plugin
BUG=none
Review URL: http://codereview.chromium.org/468012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/plugins/plugin_lib.h')
-rw-r--r-- | webkit/glue/plugins/plugin_lib.h | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/webkit/glue/plugins/plugin_lib.h b/webkit/glue/plugins/plugin_lib.h index 18efbef..6af8f9c 100644 --- a/webkit/glue/plugins/plugin_lib.h +++ b/webkit/glue/plugins/plugin_lib.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H__ -#define WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H__ +#ifndef WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H_ +#define WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H_ #include <string> #include <vector> @@ -18,8 +18,7 @@ struct WebPluginInfo; -namespace NPAPI -{ +namespace NPAPI { class PluginInstance; @@ -97,19 +96,19 @@ class PluginLib : public base::RefCounted<PluginLib> { private: bool internal_; // True for plugins that are built-in into chrome binaries. - WebPluginInfo web_plugin_info_; // supported mime types, description - base::NativeLibrary library_; // the opened library reference - NPPluginFuncs plugin_funcs_; // the struct of plugin side functions - bool initialized_; // is the plugin initialized - NPSavedData *saved_data_; // persisted plugin info for NPAPI - int instance_count_; // count of plugins in use + WebPluginInfo web_plugin_info_; // Supported mime types, description + base::NativeLibrary library_; // The opened library reference. + NPPluginFuncs plugin_funcs_; // The struct of plugin side functions. + bool initialized_; // Is the plugin initialized? + NPSavedData *saved_data_; // Persisted plugin info for NPAPI. + int instance_count_; // Count of plugins in use. // Function pointers to entry points into the plugin. PluginEntryPoints entry_points_; - DISALLOW_EVIL_CONSTRUCTORS(PluginLib); + DISALLOW_COPY_AND_ASSIGN(PluginLib); }; -} // namespace NPAPI +} // namespace NPAPI -#endif // WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H__ +#endif // WEBKIT_GLUE_PLUGIN_PLUGIN_LIB_H_ |