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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 13467038: Browser Plugin: Expose frame name changes to the content API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 7 years, 8 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/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 484e1fc587e6340e2690e10f24cae8ece87df5dc..90691a07aeeb02d2c1df695facca56b8a855ca57 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -994,6 +994,7 @@ bool RenderViewHostImpl::OnMessageReceived(const IPC::Message& msg) {
IPC_MESSAGE_HANDLER(AccessibilityHostMsg_Notifications,
OnAccessibilityNotifications)
IPC_MESSAGE_HANDLER(ViewHostMsg_FrameTreeUpdated, OnFrameTreeUpdated)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFrameName, OnUpdateFrameName)
// Have the super handle all other messages.
IPC_MESSAGE_UNHANDLED(
handled = RenderWidgetHostImpl::OnMessageReceived(msg))
@@ -1742,6 +1743,10 @@ void RenderViewHostImpl::SetAltErrorPageURL(const GURL& url) {
Send(new ViewMsg_SetAltErrorPageURL(GetRoutingID(), url));
}
+void RenderViewHostImpl::SetWindowName(const std::string& name) {
+ Send(new ViewMsg_SetName(GetRoutingID(), name));
+}
+
void RenderViewHostImpl::ExitFullscreen() {
RejectMouseLockOrUnlockIfNecessary();
// We need to notify the contents that its fullscreen state has changed. This
@@ -2014,6 +2019,14 @@ void RenderViewHostImpl::OnFrameTreeUpdated(const std::string& frame_tree) {
delegate_->DidUpdateFrameTree(this);
}
+void RenderViewHostImpl::OnUpdateFrameName(int frame_id,
+ bool is_top_level,
+ const std::string& name) {
+ delegate_->DidUpdateFrameName(this, frame_id, is_top_level, name);
+}
+
+
+
void RenderViewHostImpl::OnGetWindowSnapshot(const int snapshot_id) {
std::vector<unsigned char> png;

Powered by Google App Engine
This is Rietveld 408576698