[Author: mpcomplete]
commit28ea5c924c907727d070ee26a56c2ff7c2da7c61
authorgears.daemon <gears.daemon@fe895e04-df30-0410-9975-d76d301b4276>
Fri, 21 Dec 2007 22:00:38 +0000 (21 22:00 +0000)
committergears.daemon <gears.daemon@fe895e04-df30-0410-9975-d76d301b4276>
Fri, 21 Dec 2007 22:00:38 +0000 (21 22:00 +0000)
treead8247536cfbec71340c94fa4d4927163b8471a8
parent79a952c44012c786a57f086545b852ad3486fa80
[Author: mpcomplete]

More refactoring of NPAPI wrapper classes.  At Aaron's suggestion, I moved the Register* calls out of the wrapper classes and into the impl classes.  This gets us two cool things:
- We'll only need to register properties/methods in one, platform-neutral place (not one per port).
- The _wrapper files can go away completely.  The wrapper classes have been reduced down enough that they can be defined in a simple macro call in each module file.

Potential tricky bits about this CL:
- PluginBase<T> now expects T to be the ImplClass (ie, GearsFactory), rather than the WrapperClass (ie, GearsFactoryWrapper).  It doesn't really matter, but it made the macros simpler.
- I put the dynamic dispatch in a separate class rather than in ModuleImplBaseClass, because HtmlEventMonitor uses dynamic dispatch but is not a module.

R=aa
CC=google-gears-eng@googlegroups.com
DELTA=1106  (438 added, 596 deleted, 72 changed)
OCL=6130547
SCL=6145539

git-svn-id: https://google-gears.googlecode.com/svn/trunk@625 fe895e04-df30-0410-9975-d76d301b4276
23 files changed:
gears/Makefile
gears/base/common/base_class.h
gears/base/common/dispatcher.cc [copied from gears/base/npapi/plugin.cc with 53% similarity]
gears/base/common/dispatcher.h [new file with mode: 0644]
gears/base/common/html_event_monitor_np.cc
gears/base/npapi/module_wrapper.h
gears/base/npapi/plugin.cc
gears/base/npapi/plugin.h
gears/database/npapi/database.cc
gears/database/npapi/database_wrapper.cc [deleted file]
gears/database/npapi/result_set.cc
gears/database/npapi/result_set_wrapper.cc [deleted file]
gears/factory/npapi/factory.cc
gears/factory/npapi/factory_wrapper.cc [moved from gears/localserver/npapi/file_submitter_wrapper.cc with 69% similarity]
gears/localserver/npapi/file_submitter_np.cc
gears/localserver/npapi/localserver_np.cc
gears/localserver/npapi/localserver_wrapper.cc [deleted file]
gears/localserver/npapi/managed_resource_store_np.cc
gears/localserver/npapi/managed_resource_store_wrapper.cc [deleted file]
gears/localserver/npapi/resource_store_np.cc
gears/localserver/npapi/resource_store_wrapper.cc [deleted file]
gears/workerpool/npapi/workerpool.cc
gears/workerpool/npapi/workerpool_wrapper.cc [deleted file]