| Index: sky/engine/bindings-dart/common/BindingSecurity.h
|
| diff --git a/sky/engine/bindings/core/v8/BindingSecurity.h b/sky/engine/bindings-dart/common/BindingSecurity.h
|
| similarity index 80%
|
| copy from sky/engine/bindings/core/v8/BindingSecurity.h
|
| copy to sky/engine/bindings-dart/common/BindingSecurity.h
|
| index 4d6fd980cd1fb6ae21d3ff6ea0f2db085b9b10ec..329a536de408ece4a985dc898e30953837ecbc3f 100644
|
| --- a/sky/engine/bindings/core/v8/BindingSecurity.h
|
| +++ b/sky/engine/bindings-dart/common/BindingSecurity.h
|
| @@ -28,19 +28,19 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef SKY_ENGINE_BINDINGS_CORE_V8_BINDINGSECURITY_H_
|
| -#define SKY_ENGINE_BINDINGS_CORE_V8_BINDINGSECURITY_H_
|
| +#ifndef BindingSecurity_h
|
| +#define BindingSecurity_h
|
|
|
| // FIXME: The LocalFrame include should not be necessary, clients should be including it where they use it.
|
| -#include "sky/engine/core/frame/LocalFrame.h"
|
| -#include "sky/engine/wtf/text/WTFString.h"
|
| -#include "v8/include/v8.h"
|
| +#include "core/frame/LocalFrame.h"
|
| +#include "wtf/text/WTFString.h"
|
|
|
| namespace blink {
|
|
|
| class LocalDOMWindow;
|
| class ExceptionState;
|
| class Node;
|
| +class ScriptState;
|
|
|
| enum SecurityReportingOption {
|
| DoNotReportSecurityError,
|
| @@ -49,11 +49,11 @@ enum SecurityReportingOption {
|
|
|
| class BindingSecurity {
|
| public:
|
| - static bool shouldAllowAccessToNode(v8::Isolate*, Node*, ExceptionState&);
|
| - static bool shouldAllowAccessToFrame(v8::Isolate*, Frame*, SecurityReportingOption = ReportSecurityError);
|
| - static bool shouldAllowAccessToFrame(v8::Isolate*, Frame*, ExceptionState&);
|
| + static bool shouldAllowAccessToNode(ScriptState*, Node*, ExceptionState&);
|
| + static bool shouldAllowAccessToFrame(ScriptState*, Frame*, SecurityReportingOption = ReportSecurityError);
|
| + static bool shouldAllowAccessToFrame(ScriptState*, Frame*, ExceptionState&);
|
| };
|
|
|
| }
|
|
|
| -#endif // SKY_ENGINE_BINDINGS_CORE_V8_BINDINGSECURITY_H_
|
| +#endif
|
|
|