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

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

Issue 2760263002: Reland of PlzNavigate: send SourceLocation when mixed content is found (Closed)
Patch Set: Created 3 years, 9 months 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 | « no previous file | content/browser/frame_host/navigation_handle_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/mixed_content_navigation_throttle.cc
diff --git a/content/browser/frame_host/mixed_content_navigation_throttle.cc b/content/browser/frame_host/mixed_content_navigation_throttle.cc
index 93dd934f34ebff7017df6233977e2c45571c9144..fd10ba7f5cbf4e0b2493f59db676819928400d7a 100644
--- a/content/browser/frame_host/mixed_content_navigation_throttle.cc
+++ b/content/browser/frame_host/mixed_content_navigation_throttle.cc
@@ -94,9 +94,15 @@
DCHECK(navigation_handle->frame_tree_node()->parent());
RenderFrameHost* rfh =
navigation_handle->frame_tree_node()->current_frame_host();
- rfh->Send(new FrameMsg_MixedContentFound(
- rfh->GetRoutingID(), mixed_content_url, navigation_handle->GetURL(),
- navigation_handle->request_context_type(), was_allowed, for_redirect));
+ FrameMsg_MixedContentFound_Params params;
+ params.main_resource_url = mixed_content_url;
+ params.mixed_content_url = navigation_handle->GetURL();
+ params.request_context_type = navigation_handle->request_context_type();
+ params.was_allowed = was_allowed;
+ params.had_redirect = for_redirect;
+ params.source_location = navigation_handle->source_location();
+
+ rfh->Send(new FrameMsg_MixedContentFound(rfh->GetRoutingID(), params));
}
} // namespace
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_handle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698