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

Unified Diff: content/renderer/render_frame_proxy.h

Issue 1046933005: Refactor postMessage for out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable SupportCrossProcessPostMessage test on FYI bots 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/renderer/render_frame_proxy.h
diff --git a/content/renderer/render_frame_proxy.h b/content/renderer/render_frame_proxy.h
index 65352cf5fb3421c0db236ad279a7a0501f8e5a88..19a94f682064e763dbe53d4b84ac1374b08e08b9 100644
--- a/content/renderer/render_frame_proxy.h
+++ b/content/renderer/render_frame_proxy.h
@@ -100,6 +100,12 @@ class CONTENT_EXPORT RenderFrameProxy
// RenderFrameProxy's WebRemoteFrame.
void SetReplicatedState(const FrameReplicationState& state);
+ // Navigating a top-level frame cross-process does not swap the WebLocalFrame
+ // for a WebRemoteFrame in the frame tree. In this case, this WebRemoteFrame
+ // is not attached to the frame tree and there is no blink::Frame associated
+ // with it, so it is not in state where most operations on it will succeed.
+ bool IsMainFrameDetachedFromTree() const;
+
int routing_id() { return routing_id_; }
RenderViewImpl* render_view() { return render_view_; }
blink::WebRemoteFrame* web_frame() { return web_frame_; }
@@ -126,12 +132,6 @@ class CONTENT_EXPORT RenderFrameProxy
void Init(blink::WebRemoteFrame* frame, RenderViewImpl* render_view);
- // Navigating a top-level frame cross-process does not swap the WebLocalFrame
- // for a WebRemoteFrame in the frame tree. In this case, this WebRemoteFrame
- // is not attached to the frame tree and there is no blink::Frame associated
- // with it, so it is not in state where most operations on it will succeed.
- bool IsMainFrameDetachedFromTree() const;
-
// IPC::Listener
bool OnMessageReceived(const IPC::Message& msg) override;

Powered by Google App Engine
This is Rietveld 408576698