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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 1046933005: Refactor postMessage for out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 6753535c26ea04acf21c1b24af7520a6bd401284..671ce6c9ef067a706763fd5003b1248da7fc3d89 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -43,7 +43,6 @@
struct BrowserPluginHostMsg_ResizeGuest_Params;
struct ViewHostMsg_DateTimeDialogValue_Params;
-struct ViewMsg_PostMessage_Params;
namespace content {
class BrowserPluginEmbedder;
@@ -412,6 +411,11 @@ class CONTENT_EXPORT WebContentsImpl
GeolocationServiceContext* GetGeolocationServiceContext() override;
void EnterFullscreenMode(const GURL& origin) override;
void ExitFullscreenMode() override;
+ bool ShouldRouteMessageEvent(
+ RenderFrameHost* target_rfh,
+ SiteInstance* source_site_instance) const override;
+ int EnsureOpenerRenderViewsExist(
+ RenderFrameHost* render_frame_host) override;
#if defined(OS_WIN)
gfx::NativeViewAccessible GetParentNativeViewAccessible() override;
#endif
@@ -440,8 +444,6 @@ class CONTENT_EXPORT WebContentsImpl
void DidCancelLoading() override;
void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) override;
void RouteCloseEvent(RenderViewHost* rvh) override;
- void RouteMessageEvent(RenderViewHost* rvh,
- const ViewMsg_PostMessage_Params& params) override;
bool AddMessageToConsole(int32 level,
const base::string16& message,
int32 line_no,

Powered by Google App Engine
This is Rietveld 408576698