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