| Index: chrome/renderer/extensions/module_system.h
|
| diff --git a/chrome/renderer/extensions/module_system.h b/chrome/renderer/extensions/module_system.h
|
| index 4f790842aec9f0a5095e355b90c10a2d991a837b..be03f2ad225effe5f808e56b520c8a99fd0e6d22 100644
|
| --- a/chrome/renderer/extensions/module_system.h
|
| +++ b/chrome/renderer/extensions/module_system.h
|
| @@ -14,6 +14,7 @@
|
| #include <map>
|
| #include <set>
|
| #include <string>
|
| +#include <vector>
|
|
|
| namespace extensions {
|
|
|
| @@ -81,6 +82,13 @@ class ModuleSystem : public NativeHandler {
|
| void CallModuleMethod(const std::string& module_name,
|
| const std::string& method_name);
|
|
|
| + // Calls the specified method exported by the specified module. This is
|
| + // equivalent to calling require('module_name').method_name(args) from JS.
|
| + v8::Local<v8::Value> CallModuleMethod(
|
| + const std::string& module_name,
|
| + const std::string& method_name,
|
| + std::vector<v8::Handle<v8::Value> >* args);
|
| +
|
| // Register |native_handler| as a potential target for requireNative(), so
|
| // calls to requireNative(|name|) from JS will return a new object created by
|
| // |native_handler|.
|
|
|