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

Side by Side Diff: content/public/browser/navigation_handle.cc

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 unified diff | Download patch
« no previous file with comments | « content/public/browser/navigation_handle.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/browser/navigation_handle.h" 5 #include "content/public/browser/navigation_handle.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/frame_host/navigation_handle_impl.h" 9 #include "content/browser/frame_host/navigation_handle_impl.h"
10 #include "content/browser/frame_host/navigator.h" 10 #include "content/browser/frame_host/navigator.h"
(...skipping 11 matching lines...) Expand all
22 22
23 // static 23 // static
24 std::unique_ptr<NavigationHandle> 24 std::unique_ptr<NavigationHandle>
25 NavigationHandle::CreateNavigationHandleForTesting( 25 NavigationHandle::CreateNavigationHandleForTesting(
26 const GURL& url, 26 const GURL& url,
27 RenderFrameHost* render_frame_host) { 27 RenderFrameHost* render_frame_host) {
28 std::unique_ptr<NavigationHandleImpl> handle_impl = 28 std::unique_ptr<NavigationHandleImpl> handle_impl =
29 NavigationHandleImpl::Create( 29 NavigationHandleImpl::Create(
30 url, static_cast<RenderFrameHostImpl*>(render_frame_host) 30 url, static_cast<RenderFrameHostImpl*>(render_frame_host)
31 ->frame_tree_node(), 31 ->frame_tree_node(),
32 true, // is_renderer_initiated
32 false, // is_synchronous 33 false, // is_synchronous
33 false, // is_srcdoc 34 false, // is_srcdoc
34 base::TimeTicks::Now(), 0); 35 base::TimeTicks::Now(), 0);
35 return std::unique_ptr<NavigationHandle>(std::move(handle_impl)); 36 return std::unique_ptr<NavigationHandle>(std::move(handle_impl));
36 } 37 }
37 38
38 } // namespace content 39 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/navigation_handle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698