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

Unified Diff: content/renderer/render_view_impl.h

Issue 9108001: Adds support for calling postMessage on a frame living in a different renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Invert check. Created 8 years, 7 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 | « content/public/browser/render_view_host_delegate.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index 470aefee20853dc43f9515b48173032de779a697..46f253364254f53dba423e6a3dec4eaeb205ef17 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -43,6 +43,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClient.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityState.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSystem.h"
@@ -81,6 +82,7 @@ class RendererWebColorChooserImpl;
class SkBitmap;
class InputTagSpeechDispatcher;
struct ViewMsg_Navigate_Params;
+struct ViewMsg_PostMessage_Params;
struct ViewMsg_StopFinding_Params;
struct ViewMsg_SwapOut_Params;
struct WebDropData;
@@ -120,6 +122,7 @@ class ResourceFetcher;
namespace WebKit {
class WebApplicationCacheHost;
class WebApplicationCacheHostClient;
+class WebDOMMessageEvent;
class WebDataSource;
class WebDragData;
class WebGeolocationClient;
@@ -595,6 +598,10 @@ class RenderViewImpl : public RenderWidget,
const WebKit::WebIntentRequest& intentRequest);
virtual void willOpenSocketStream(
WebKit::WebSocketStreamHandle* handle);
+ virtual bool willCheckAndDispatchMessageEvent(
+ WebKit::WebFrame* source,
+ WebKit::WebSecurityOrigin targetOrigin,
+ WebKit::WebDOMMessageEvent event) OVERRIDE;
// WebKit::WebPageSerializerClient implementation ----------------------------
@@ -871,6 +878,7 @@ class RenderViewImpl : public RenderWidget,
#if defined(OS_MACOSX)
void OnPluginImeCompositionCompleted(const string16& text, int plugin_id);
#endif
+ void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params);
void OnRedo();
void OnReloadFrame();
void OnReplace(const string16& text);
« no previous file with comments | « content/public/browser/render_view_host_delegate.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698