[Author: mpcomplete]
commitd12c3435d96c377f63ddea1e18738e847cf5c4d1
authorgears.daemon <gears.daemon@fe895e04-df30-0410-9975-d76d301b4276>
Sat, 8 Dec 2007 02:00:52 +0000 (8 02:00 +0000)
committergears.daemon <gears.daemon@fe895e04-df30-0410-9975-d76d301b4276>
Sat, 8 Dec 2007 02:00:52 +0000 (8 02:00 +0000)
tree2dfc099cbcfc8d8d3954ecd28692c8a8bab8677f
parent82ad9c451ba587c138a6a88b8f74035275c042bb
[Author: mpcomplete]

Refactor how modules are created in NPAPI.
- CreateGearsFoo becomes CreateModule<GearsFoo>.
- ScopedModuleWrapper becomes ScopedModule<GearsFoo>.
- The return type is now a GearsFoo, instead of a pointer to the wrapper base class.  This makes it simpler to work with the module once you create it.
- Also, added a JsContextPtr parameter to the module creation functions.  (The pain involved in this was what started this whole fiasco).

R=cprince
CC=google-gears-eng@googlegroups.com
DELTA=195  (95 added, 55 deleted, 45 changed)
OCL=5993545
SCL=6053240

git-svn-id: https://google-gears.googlecode.com/svn/trunk@559 fe895e04-df30-0410-9975-d76d301b4276
26 files changed:
gears/base/common/base_class.cc
gears/base/common/base_class.h
gears/base/common/js_runner_ff.cc
gears/base/common/js_runner_ie.cc
gears/base/common/js_types.cc
gears/base/common/js_types.h
gears/base/npapi/module_wrapper.h
gears/database/npapi/database.cc
gears/database/npapi/database.h
gears/database/npapi/database_wrapper.cc
gears/database/npapi/result_set.h
gears/database/npapi/result_set_wrapper.cc
gears/factory/npapi/factory.cc
gears/factory/npapi/factory_wrapper.cc
gears/localserver/npapi/file_submitter_np.h
gears/localserver/npapi/file_submitter_wrapper.cc
gears/localserver/npapi/localserver_np.cc
gears/localserver/npapi/localserver_np.h
gears/localserver/npapi/localserver_wrapper.cc
gears/localserver/npapi/managed_resource_store_np.h
gears/localserver/npapi/managed_resource_store_wrapper.cc
gears/localserver/npapi/resource_store_np.cc
gears/localserver/npapi/resource_store_np.h
gears/localserver/npapi/resource_store_wrapper.cc
gears/workerpool/npapi/workerpool.h
gears/workerpool/npapi/workerpool_wrapper.cc