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

Unified Diff: Source/WebCore/bindings/generic/BindingSecurity.h

Issue 9963061: Merge 112184 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 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
Index: Source/WebCore/bindings/generic/BindingSecurity.h
===================================================================
--- Source/WebCore/bindings/generic/BindingSecurity.h (revision 112895)
+++ Source/WebCore/bindings/generic/BindingSecurity.h (working copy)
@@ -32,6 +32,8 @@
#define BindingSecurity_h
#include "BindingSecurityBase.h"
+#include "DOMWindow.h"
+#include "Document.h"
#include "Element.h"
#include "Frame.h"
#include "GenericBinding.h"
@@ -61,8 +63,6 @@
static bool allowSettingFrameSrcToJavascriptUrl(State<Binding>*, HTMLFrameElementBase*, const String& value);
static bool allowSettingSrcToJavascriptURL(State<Binding>*, Element*, const String& name, const String& value);
- static bool shouldAllowNavigation(State<Binding>*, Frame*);
-
private:
explicit BindingSecurity() {}
~BindingSecurity();
@@ -145,13 +145,6 @@
return true;
}
-template <class Binding>
-bool BindingSecurity<Binding>::shouldAllowNavigation(State<Binding>* state, Frame* frame)
-{
- Frame* activeFrame = state->activeFrame();
- return activeFrame && activeFrame->loader()->shouldAllowNavigation(frame);
}
-}
-
#endif // BindingSecurity_h

Powered by Google App Engine
This is Rietveld 408576698