| Index: third_party/WebKit/Source/bindings/core/v8/ModuleProxy.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ModuleProxy.h b/third_party/WebKit/Source/bindings/core/v8/ModuleProxy.h
|
| index 781dfc3f4f1463d004058418d2d85da402ac3241..285784cfab925973a821f5127db764b854b49024 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ModuleProxy.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ModuleProxy.h
|
| @@ -5,20 +5,28 @@
|
| #ifndef ModuleProxy_h
|
| #define ModuleProxy_h
|
|
|
| +#include "core/CoreExport.h"
|
| #include "wtf/Allocator.h"
|
| #include <v8.h>
|
|
|
| namespace blink {
|
|
|
| +class ExecutionContext;
|
| +
|
| // A proxy class to invoke functions implemented in bindings/modules
|
| // from bindings/core.
|
| -class ModuleProxy {
|
| +class CORE_EXPORT ModuleProxy {
|
| USING_FAST_MALLOC(ModuleProxy);
|
| public:
|
| static ModuleProxy& moduleProxy();
|
|
|
| + ExecutionContext* toExecutionContextForModules(v8::Local<v8::Context>);
|
| + void registerToExecutionContextForModules(ExecutionContext* (*toExecutionContextForModules)(v8::Local<v8::Context>));
|
| +
|
| private:
|
| ModuleProxy() { }
|
| +
|
| + ExecutionContext* (*m_toExecutionContextForModules)(v8::Local<v8::Context>) = nullptr;
|
| };
|
|
|
| } // namespace blink
|
|
|