Index: chrome/renderer/module_system.h |
diff --git a/chrome/renderer/module_system.h b/chrome/renderer/module_system.h |
index 1dc6065a9b472a107edaf021a3a4ba295bdd486d..c68137a073cfffb93b23a4445602f345e5ac1d6c 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); |