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

Unified Diff: content/browser/frame_host/render_frame_host_impl.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
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 34c8572c4391e87f2198abd6d78498ecbe4be1c4..59c1ea98794dda3e15a65f89aa02d03cdad4c88b 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -720,6 +720,8 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) {
OnDidAddContentSecurityPolicy)
IPC_MESSAGE_HANDLER(FrameHostMsg_EnforceInsecureRequestPolicy,
OnEnforceInsecureRequestPolicy)
+ IPC_MESSAGE_HANDLER(FrameHostMsg_EnforceInsecureNavigationsSet,
+ OnEnforceInsecureNavigationsSet)
IPC_MESSAGE_HANDLER(FrameHostMsg_UpdateToUniqueOrigin,
OnUpdateToUniqueOrigin)
IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeSandboxFlags,
@@ -1755,6 +1757,11 @@ void RenderFrameHostImpl::OnEnforceInsecureRequestPolicy(
frame_tree_node()->SetInsecureRequestPolicy(policy);
}
+void RenderFrameHostImpl::OnEnforceInsecureNavigationsSet(
+ const std::vector<uint32_t>& set) {
+ frame_tree_node()->SetInsecureNavigationsSet(set);
+}
+
void RenderFrameHostImpl::OnUpdateToUniqueOrigin(
bool is_potentially_trustworthy_unique_origin) {
url::Origin origin;
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/frame_host/render_frame_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698