| Index: chrome/renderer/extensions/chrome_v8_context.h
|
| diff --git a/chrome/renderer/extensions/chrome_v8_context.h b/chrome/renderer/extensions/chrome_v8_context.h
|
| index 11a4a87bec87d9c990898974345e32d13542e02c..3faf9d2a3d642120fbc83c648440d4ed871bf366 100644
|
| --- a/chrome/renderer/extensions/chrome_v8_context.h
|
| +++ b/chrome/renderer/extensions/chrome_v8_context.h
|
| @@ -9,6 +9,7 @@
|
| #include <string>
|
|
|
| #include "base/basictypes.h"
|
| +#include "chrome/renderer/module_system.h"
|
| #include "v8/include/v8.h"
|
|
|
| namespace WebKit {
|
| @@ -60,6 +61,10 @@ class ChromeV8Context {
|
| return context_type_;
|
| }
|
|
|
| + void set_module_system(scoped_ptr<ModuleSystem> module_system) {
|
| + module_system_ = module_system.Pass();
|
| + }
|
| +
|
| // Returns a special Chrome-specific hidden object that is associated with a
|
| // context, but not reachable from the JavaScript in that context. This is
|
| // used by our v8::Extension implementations as a way to share code and as a
|
| @@ -113,6 +118,9 @@ class ChromeV8Context {
|
| // The type of context.
|
| ContextType context_type_;
|
|
|
| + // Owns and structures the JS that is injected to set up extension bindings.
|
| + scoped_ptr<ModuleSystem> module_system_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ChromeV8Context);
|
| };
|
|
|
|
|