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

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: Adding subframe limiter test 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 05f7586e53eed203ad54ce55a4d0cb59bd0a907c..56a07b13626dc94915f0c8f4e88e7fb743b7dd6e 100644
--- a/content/browser/frame_host/navigation_handle_impl.h
+++ b/content/browser/frame_host/navigation_handle_impl.h
@@ -70,6 +70,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,
@@ -80,6 +81,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;
@@ -240,6 +242,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,
@@ -264,6 +267,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_;
« no previous file with comments | « chrome/browser/download/download_request_limiter_unittest.cc ('k') | content/browser/frame_host/navigation_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698