diff options
Diffstat (limited to 'chrome/renderer/module_system.h')
-rw-r--r-- | chrome/renderer/module_system.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/renderer/module_system.h b/chrome/renderer/module_system.h index 1dc6065..c68137a 100644 --- a/chrome/renderer/module_system.h +++ b/chrome/renderer/module_system.h @@ -54,6 +54,9 @@ class ModuleSystem : public NativeHandler { explicit ModuleSystem(v8::Handle<v8::Context> context, SourceMap* source_map); virtual ~ModuleSystem(); + // Returns true if the current context has a ModuleSystem installed in it. + static bool IsPresentInCurrentContext(); + // Require the specified module. This is the equivalent of calling // require('module_name') from the loaded JS files. void Require(const std::string& module_name); |