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

Unified Diff: content/browser/frame_host/navigation_handle_impl.h

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
Index: content/browser/frame_host/navigation_handle_impl.h
diff --git a/content/browser/frame_host/navigation_handle_impl.h b/content/browser/frame_host/navigation_handle_impl.h
index 41bedf9300dac15f59c3448b550f5600123f9236..c3c3fa73f859706e237d986e0e520be77c31fb6b 100644
--- a/content/browser/frame_host/navigation_handle_impl.h
+++ b/content/browser/frame_host/navigation_handle_impl.h
@@ -370,6 +370,11 @@
return should_check_main_world_csp_;
}
+ const SourceLocation& source_location() const { return source_location_; }
+ void set_source_location(const SourceLocation& source_location) {
+ source_location_ = source_location;
+ }
+
private:
friend class NavigationHandleImplTest;
@@ -546,6 +551,11 @@
// Whether or not the navigation results from the submission of a form.
bool is_form_submission_;
+ // PlzNavigate
+ // Information about the JavaScript that started the navigation. For
+ // navigations initiated by Javascript.
+ SourceLocation source_location_;
+
base::WeakPtrFactory<NavigationHandleImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
« no previous file with comments | « content/browser/frame_host/mixed_content_navigation_throttle.cc ('k') | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698