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

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

Issue 1489253002: Plumb document's strict mixed content checking for RemoteFrames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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_manager.h" 5 #include "content/browser/frame_host/render_frame_host_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 // OnDidUpdateOrigin? 1142 // OnDidUpdateOrigin?
1143 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) 1143 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible())
1144 return; 1144 return;
1145 1145
1146 for (const auto& pair : *proxy_hosts_) { 1146 for (const auto& pair : *proxy_hosts_) {
1147 pair.second->Send( 1147 pair.second->Send(
1148 new FrameMsg_DidUpdateName(pair.second->GetRoutingID(), name)); 1148 new FrameMsg_DidUpdateName(pair.second->GetRoutingID(), name));
1149 } 1149 }
1150 } 1150 }
1151 1151
1152 void RenderFrameHostManager::OnDidUpdateShouldEnforceStrictMixedContentChecking(
1153 bool should_enforce) {
1154 for (const auto& pair : *proxy_hosts_) {
1155 pair.second->Send(
1156 new FrameMsg_DidUpdateShouldEnforceStrictMixedContentChecking(
1157 pair.second->GetRoutingID(), should_enforce));
1158 }
1159 }
1160
1152 void RenderFrameHostManager::OnDidUpdateOrigin(const url::Origin& origin) { 1161 void RenderFrameHostManager::OnDidUpdateOrigin(const url::Origin& origin) {
1153 if (!SiteIsolationPolicy::IsSwappedOutStateForbidden()) 1162 if (!SiteIsolationPolicy::IsSwappedOutStateForbidden())
1154 return; 1163 return;
1155 1164
1156 for (const auto& pair : *proxy_hosts_) { 1165 for (const auto& pair : *proxy_hosts_) {
1157 pair.second->Send( 1166 pair.second->Send(
1158 new FrameMsg_DidUpdateOrigin(pair.second->GetRoutingID(), origin)); 1167 new FrameMsg_DidUpdateOrigin(pair.second->GetRoutingID(), origin));
1159 } 1168 }
1160 } 1169 }
1161 1170
(...skipping 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after
2684 int RenderFrameHostManager::GetOpenerRoutingID(SiteInstance* instance) { 2693 int RenderFrameHostManager::GetOpenerRoutingID(SiteInstance* instance) {
2685 if (!frame_tree_node_->opener()) 2694 if (!frame_tree_node_->opener())
2686 return MSG_ROUTING_NONE; 2695 return MSG_ROUTING_NONE;
2687 2696
2688 return frame_tree_node_->opener() 2697 return frame_tree_node_->opener()
2689 ->render_manager() 2698 ->render_manager()
2690 ->GetRoutingIdForSiteInstance(instance); 2699 ->GetRoutingIdForSiteInstance(instance);
2691 } 2700 }
2692 2701
2693 } // namespace content 2702 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698