Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(787)

Unified Diff: sky/engine/bindings-dart/common/BindingSecurity.h

Issue 875013003: Import Dart bindings as of Blink r188698. This merely copies the files over and does not attach any… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/bindings-dart/common/ArrayValue.h ('k') | sky/engine/bindings-dart/common/BindingSecurity.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « sky/engine/bindings-dart/common/ArrayValue.h ('k') | sky/engine/bindings-dart/common/BindingSecurity.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698