| OLD | NEW |
| 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 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1177 // OnDidUpdateOrigin? | 1177 // OnDidUpdateOrigin? |
| 1178 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) | 1178 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) |
| 1179 return; | 1179 return; |
| 1180 | 1180 |
| 1181 for (const auto& pair : *proxy_hosts_) { | 1181 for (const auto& pair : *proxy_hosts_) { |
| 1182 pair.second->Send( | 1182 pair.second->Send( |
| 1183 new FrameMsg_DidUpdateName(pair.second->GetRoutingID(), name)); | 1183 new FrameMsg_DidUpdateName(pair.second->GetRoutingID(), name)); |
| 1184 } | 1184 } |
| 1185 } | 1185 } |
| 1186 | 1186 |
| 1187 void RenderFrameHostManager::OnDidUpdateShouldEnforceStrictMixedContentChecking( |
| 1188 bool should_enforce) { |
| 1189 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) |
| 1190 return; |
| 1191 |
| 1192 for (const auto& pair : *proxy_hosts_) { |
| 1193 pair.second->Send( |
| 1194 new FrameMsg_DidUpdateShouldEnforceStrictMixedContentChecking( |
| 1195 pair.second->GetRoutingID(), should_enforce)); |
| 1196 } |
| 1197 } |
| 1198 |
| 1187 void RenderFrameHostManager::OnDidUpdateOrigin(const url::Origin& origin) { | 1199 void RenderFrameHostManager::OnDidUpdateOrigin(const url::Origin& origin) { |
| 1188 if (!SiteIsolationPolicy::IsSwappedOutStateForbidden()) | 1200 if (!SiteIsolationPolicy::IsSwappedOutStateForbidden()) |
| 1189 return; | 1201 return; |
| 1190 | 1202 |
| 1191 for (const auto& pair : *proxy_hosts_) { | 1203 for (const auto& pair : *proxy_hosts_) { |
| 1192 pair.second->Send( | 1204 pair.second->Send( |
| 1193 new FrameMsg_DidUpdateOrigin(pair.second->GetRoutingID(), origin)); | 1205 new FrameMsg_DidUpdateOrigin(pair.second->GetRoutingID(), origin)); |
| 1194 } | 1206 } |
| 1195 } | 1207 } |
| 1196 | 1208 |
| (...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2683 int RenderFrameHostManager::GetOpenerRoutingID(SiteInstance* instance) { | 2695 int RenderFrameHostManager::GetOpenerRoutingID(SiteInstance* instance) { |
| 2684 if (!frame_tree_node_->opener()) | 2696 if (!frame_tree_node_->opener()) |
| 2685 return MSG_ROUTING_NONE; | 2697 return MSG_ROUTING_NONE; |
| 2686 | 2698 |
| 2687 return frame_tree_node_->opener() | 2699 return frame_tree_node_->opener() |
| 2688 ->render_manager() | 2700 ->render_manager() |
| 2689 ->GetRoutingIdForSiteInstance(instance); | 2701 ->GetRoutingIdForSiteInstance(instance); |
| 2690 } | 2702 } |
| 2691 | 2703 |
| 2692 } // namespace content | 2704 } // namespace content |
| OLD | NEW |