diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-28 16:12:04 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-28 16:12:04 +0000 |
commit | aaa72e79db2cda858908164f9e7aec4dbc8e14de (patch) | |
tree | aafde038620d62a0f516309a85708cfb19173815 /webkit/plugins/ppapi/ppb_var_impl.h | |
parent | 996d322fc47bc052f00c17f0ea07e5a1799aaf35 (diff) | |
download | chromium_src-aaa72e79db2cda858908164f9e7aec4dbc8e14de.zip chromium_src-aaa72e79db2cda858908164f9e7aec4dbc8e14de.tar.gz chromium_src-aaa72e79db2cda858908164f9e7aec4dbc8e14de.tar.bz2 |
Make Var less dependent on NPAPI. The goal is to remove all of these
dependencies and then move Var and the associated tracking stuff to the
shared_impl, where it can be used to replace the similar code in the proxy.
There should be no difference in functionality.
- I moved the Var/NPAPI conversion stuff from the Var and ObjectVar object into
NPAPI glue.
- I moved the Var scripting interface implementation (which forwards to NPAPI)
to the ppb_var_impl file which is nice because it also matches other
interfaces.
- I moved the ObjectVar lifetime tracking from the instance into the
ResourceTracker with the other var stuff. It turns out we were already
tracking the object vars there, so I did a little cleanup.
- I changed the PluginModule and PluginInstance in the var object to PP_Module
and PP_Instance.
The only remaining NPAPI stuff to worry about are the calls to WebBindings in
the ObjectVar constructor & destructor. I will probably move this to the
resource tracker when I move the var file out.
Review URL: http://codereview.chromium.org/7371010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94470 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/ppb_var_impl.h')
-rw-r--r-- | webkit/plugins/ppapi/ppb_var_impl.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/webkit/plugins/ppapi/ppb_var_impl.h b/webkit/plugins/ppapi/ppb_var_impl.h new file mode 100644 index 0000000..d2c63a1 --- /dev/null +++ b/webkit/plugins/ppapi/ppb_var_impl.h @@ -0,0 +1,23 @@ +// 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_PPAPI_PPB_VAR_IMPL_H_ +#define WEBKIT_PLUGINS_PPAPI_PPB_VAR_IMPL_H_ + +struct PPB_Var; +struct PPB_Var_Deprecated; + +namespace webkit { +namespace ppapi { + +class PPB_Var_Impl { + public: + static const PPB_Var* GetVarInterface(); + static const PPB_Var_Deprecated* GetVarDeprecatedInterface(); +}; + +} // namespace ppapi +} // namespace webkit + +#endif // WEBKIT_PLUGINS_PPAPI_PPB_VAR_IMPL_H_ |