blob: ed2e0f160a507d3360c34e50ed28817a19a19a32 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ModuleProxy_h
#define ModuleProxy_h
#include <v8.h>
namespace blink {
// A proxy class to invoke functions implemented in bindings/modules
// from bindings/core.
class ModuleProxy {
public:
static ModuleProxy& moduleProxy();
void didLeaveScriptContextForRecursionScope(v8::Isolate*);
void registerDidLeaveScriptContextForRecursionScope(void (*didLeaveScriptContext)(v8::Isolate*));
private:
ModuleProxy() : m_didLeaveScriptContextForRecursionScope(0) { }
void (*m_didLeaveScriptContextForRecursionScope)(v8::Isolate*);
};
} // namespace blink
#endif // ModuleProxy_h