summaryrefslogtreecommitdiffstats
path: root/gin/modules/module_registry.h
diff options
context:
space:
mode:
Diffstat (limited to 'gin/modules/module_registry.h')
-rw-r--r--gin/modules/module_registry.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/gin/modules/module_registry.h b/gin/modules/module_registry.h
index 755875c..2270d31 100644
--- a/gin/modules/module_registry.h
+++ b/gin/modules/module_registry.h
@@ -13,8 +13,9 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/scoped_vector.h"
#include "gin/gin_export.h"
-#include "gin/per_context_data.h"
+#include "v8/include/v8.h"
namespace gin {
@@ -31,7 +32,7 @@ struct PendingModule;
// function. The spec says we should only add that property once our
// implementation complies with the specification.
//
-class GIN_EXPORT ModuleRegistry : public ContextSupplement {
+class GIN_EXPORT ModuleRegistry {
public:
typedef base::Callback<void (v8::Handle<v8::Value>)> LoadModuleCallback;
@@ -71,9 +72,6 @@ class GIN_EXPORT ModuleRegistry : public ContextSupplement {
explicit ModuleRegistry(v8::Isolate* isolate);
- // From ContextSupplement:
- virtual void Detach(v8::Handle<v8::Context> context) OVERRIDE;
-
void Load(v8::Isolate* isolate, scoped_ptr<PendingModule> pending);
void RegisterModule(v8::Isolate* isolate,
const std::string& id,