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

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

Issue 2745363004: 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 3d62bb76c3ff21e89cdc417c465c26ad9e2fc27b..a21af943f95185959b09062f89a36a32ebcbeb90 100644
--- a/content/browser/frame_host/navigation_handle_impl.h
+++ b/content/browser/frame_host/navigation_handle_impl.h
@@ -355,6 +355,11 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
base_url_for_data_url_ = url;
}
+ const SourceLocation& source_location() const { return source_location_; }
+ void set_source_location(const SourceLocation& source_location) {
+ source_location_ = source_location;
+ }
+
private:
friend class NavigationHandleImplTest;
@@ -520,6 +525,11 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
net::HostPortPair socket_address_;
NavigationType navigation_type_;
+ // PlzNavigate
+ // Information about the Javascript that started the navigation. for
nasko 2017/03/15 18:29:08 nit: JavaScript nit: For
clamy 2017/03/16 15:07:03 Done.
+ // navigations initiated by Javascript.
+ SourceLocation source_location_;
+
base::WeakPtrFactory<NavigationHandleImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);

Powered by Google App Engine
This is Rietveld 408576698