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

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

Issue 1964863002: Persist prompt/block download limiter state on renderer-initiated loads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing reviewer comments Created 4 years, 7 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 07501267d8287e0f2dfbc7d0ff520239ba6792e0..f3ecf3a9b5f7b7a33e58c6b50e72395d9c8b8838 100644
--- a/content/browser/frame_host/navigation_handle_impl.h
+++ b/content/browser/frame_host/navigation_handle_impl.h
@@ -69,6 +69,7 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
static std::unique_ptr<NavigationHandleImpl> Create(
const GURL& url,
FrameTreeNode* frame_tree_node,
+ bool is_renderer_initiated,
bool is_synchronous,
bool is_srcdoc,
const base::TimeTicks& navigation_start,
@@ -79,6 +80,7 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
const GURL& GetURL() override;
bool IsInMainFrame() override;
bool IsParentMainFrame() override;
+ bool IsRendererInitiated() override;
bool IsSynchronousNavigation() override;
bool IsSrcdoc() override;
bool WasServerRedirect() override;
@@ -231,6 +233,7 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
NavigationHandleImpl(const GURL& url,
FrameTreeNode* frame_tree_node,
+ bool is_renderer_initiated,
bool is_synchronous,
bool is_srcdoc,
const base::TimeTicks& navigation_start,
@@ -255,6 +258,7 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
bool is_external_protocol_;
net::Error net_error_code_;
RenderFrameHostImpl* render_frame_host_;
+ const bool is_renderer_initiated_;
bool is_same_page_;
const bool is_synchronous_;
const bool is_srcdoc_;

Powered by Google App Engine
This is Rietveld 408576698