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

Unified Diff: content/browser/frame_host/render_frame_host_manager.cc

Issue 2557063002: Upgrade Insecure Requests: bugfixes, tests, and support for OOPIF.
Patch Set: Addressed comments (@nasko #2). Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_manager.cc
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc
index 59cbe436c80a945cff6f16a1e98cea75ad0b679d..f6fc54b2c7c0d24e6c9dc3819db35334b62c50d1 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -982,6 +982,17 @@ void RenderFrameHostManager::OnEnforceInsecureRequestPolicy(
}
}
+void RenderFrameHostManager::OnEnforceInsecureNavigationsSet(
+ const std::vector<uint32_t>& insecure_navigations_set) {
+ if (!SiteIsolationPolicy::AreCrossProcessFramesPossible())
+ return;
+
+ for (const auto& pair : proxy_hosts_) {
+ pair.second->Send(new FrameMsg_EnforceInsecureNavigationsSet(
+ pair.second->GetRoutingID(), insecure_navigations_set));
+ }
+}
+
void RenderFrameHostManager::OnDidUpdateFrameOwnerProperties(
const FrameOwnerProperties& properties) {
if (!SiteIsolationPolicy::AreCrossProcessFramesPossible())
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698