Index: chrome/renderer/extensions/module_system.h |
diff --git a/chrome/renderer/extensions/module_system.h b/chrome/renderer/extensions/module_system.h |
index 75410f1356547b457dafac3aeb7ae925c5368dd9..e371865d9cacfb3f560d4fe5cbf0c71786fd1916 100644 |
--- a/chrome/renderer/extensions/module_system.h |
+++ b/chrome/renderer/extensions/module_system.h |
@@ -69,6 +69,11 @@ class ModuleSystem : public NativeHandler { |
v8::Handle<v8::Value> RequireForJs(const v8::Arguments& args); |
v8::Handle<v8::Value> RequireForJsInner(v8::Handle<v8::String> module_name); |
+ // Calls the specified method exported by the specified module. This is |
+ // equivalent to calling require('module_name').method_name() from JS. |
+ void CallModuleMethod(const std::string& module_name, |
+ const std::string& method_name); |
+ |
// 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|. |