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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1938753002: OOPIF: Replicate allowFullscreen flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only send non-default FrameOwnerProperties to new proxies Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 // navigates and the new sandbox flags take effect. 1557 // navigates and the new sandbox flags take effect.
1558 RenderFrameHost* child_rfh = child->current_frame_host(); 1558 RenderFrameHost* child_rfh = child->current_frame_host();
1559 if (child_rfh->GetSiteInstance() != GetSiteInstance()) { 1559 if (child_rfh->GetSiteInstance() != GetSiteInstance()) {
1560 child_rfh->Send( 1560 child_rfh->Send(
1561 new FrameMsg_DidUpdateSandboxFlags(child_rfh->GetRoutingID(), flags)); 1561 new FrameMsg_DidUpdateSandboxFlags(child_rfh->GetRoutingID(), flags));
1562 } 1562 }
1563 } 1563 }
1564 1564
1565 void RenderFrameHostImpl::OnDidChangeFrameOwnerProperties( 1565 void RenderFrameHostImpl::OnDidChangeFrameOwnerProperties(
1566 int32_t frame_routing_id, 1566 int32_t frame_routing_id,
1567 const blink::WebFrameOwnerProperties& frame_owner_properties) { 1567 const blink::WebFrameOwnerProperties& properties) {
1568 FrameTreeNode* child = FindAndVerifyChild( 1568 FrameTreeNode* child = FindAndVerifyChild(
1569 frame_routing_id, bad_message::RFH_OWNER_PROPERTY); 1569 frame_routing_id, bad_message::RFH_OWNER_PROPERTY);
1570 if (!child) 1570 if (!child)
1571 return; 1571 return;
1572 1572
1573 child->set_frame_owner_properties(frame_owner_properties); 1573 child->set_frame_owner_properties(properties);
1574 1574
1575 // Notify the RenderFrame if it lives in a different process from its parent. 1575 child->render_manager()->OnDidUpdateFrameOwnerProperties(properties);
1576 // These properties only affect the RenderFrame and live in its parent
1577 // (HTMLFrameOwnerElement). Therefore, we do not need to notify this frame's
1578 // proxies.
1579 RenderFrameHost* child_rfh = child->current_frame_host();
1580 if (child_rfh->GetSiteInstance() != GetSiteInstance()) {
1581 child_rfh->Send(new FrameMsg_SetFrameOwnerProperties(
1582 child_rfh->GetRoutingID(), frame_owner_properties));
1583 }
1584 } 1576 }
1585 1577
1586 void RenderFrameHostImpl::OnUpdateTitle( 1578 void RenderFrameHostImpl::OnUpdateTitle(
1587 const base::string16& title, 1579 const base::string16& title,
1588 blink::WebTextDirection title_direction) { 1580 blink::WebTextDirection title_direction) {
1589 // This message should only be sent for top-level frames. 1581 // This message should only be sent for top-level frames.
1590 if (frame_tree_node_->parent()) 1582 if (frame_tree_node_->parent())
1591 return; 1583 return;
1592 1584
1593 if (title.length() > kMaxTitleChars) { 1585 if (title.length() > kMaxTitleChars) {
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2764 // handler after it's destroyed so it can't run after the RFHI is destroyed. 2756 // handler after it's destroyed so it can't run after the RFHI is destroyed.
2765 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( 2757 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind(
2766 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); 2758 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this)));
2767 } 2759 }
2768 2760
2769 void RenderFrameHostImpl::DeleteWebBluetoothService() { 2761 void RenderFrameHostImpl::DeleteWebBluetoothService() {
2770 web_bluetooth_service_.reset(); 2762 web_bluetooth_service_.reset();
2771 } 2763 }
2772 2764
2773 } // namespace content 2765 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698