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

Unified Diff: Source/core/frame/FrameClient.h

Issue 543913002: Hook up postMessages to WebRemoteFrameClient (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix webkit_unit_tests compile Created 6 years, 3 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 | « no previous file | Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameClient.h
diff --git a/Source/core/frame/FrameClient.h b/Source/core/frame/FrameClient.h
index 22eef163f170a6d858af69212ce1fcf831014b26..3d388af7e400acfa0dedc1363c59a1455bb4e504 100644
--- a/Source/core/frame/FrameClient.h
+++ b/Source/core/frame/FrameClient.h
@@ -8,6 +8,9 @@
namespace blink {
class Frame;
+class LocalFrame;
+class MessageEvent;
+class SecurityOrigin;
class FrameClient {
public:
@@ -21,6 +24,9 @@ public:
virtual Frame* firstChild() const = 0;
virtual Frame* lastChild() const = 0;
+ // Returns true if the embedder intercepted the postMessage call
+ virtual bool willCheckAndDispatchMessageEvent(SecurityOrigin* /*target*/, MessageEvent*, LocalFrame* /*sourceFrame*/) const { return false; }
+
virtual ~FrameClient() { }
};
« no previous file with comments | « no previous file | Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698