| Index: content/browser/frame_host/navigation_handle_impl.cc
|
| diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc
|
| index 98d559b0947123679adc64ef770eb75344d7d895..07582fbca5ca0ea60558925bfef8f462a11db4f0 100644
|
| --- a/content/browser/frame_host/navigation_handle_impl.cc
|
| +++ b/content/browser/frame_host/navigation_handle_impl.cc
|
| @@ -34,18 +34,21 @@ void UpdateThrottleCheckResult(
|
| std::unique_ptr<NavigationHandleImpl> NavigationHandleImpl::Create(
|
| const GURL& url,
|
| FrameTreeNode* frame_tree_node,
|
| + bool is_renderer_initiated,
|
| bool is_synchronous,
|
| bool is_srcdoc,
|
| const base::TimeTicks& navigation_start,
|
| int pending_nav_entry_id) {
|
| return std::unique_ptr<NavigationHandleImpl>(
|
| - new NavigationHandleImpl(url, frame_tree_node, is_synchronous, is_srcdoc,
|
| - navigation_start, pending_nav_entry_id));
|
| + new NavigationHandleImpl(url, frame_tree_node, is_renderer_initiated,
|
| + is_synchronous, is_srcdoc, navigation_start,
|
| + pending_nav_entry_id));
|
| }
|
|
|
| NavigationHandleImpl::NavigationHandleImpl(
|
| const GURL& url,
|
| FrameTreeNode* frame_tree_node,
|
| + bool is_renderer_initiated,
|
| bool is_synchronous,
|
| bool is_srcdoc,
|
| const base::TimeTicks& navigation_start,
|
| @@ -56,6 +59,7 @@ NavigationHandleImpl::NavigationHandleImpl(
|
| is_external_protocol_(false),
|
| net_error_code_(net::OK),
|
| render_frame_host_(nullptr),
|
| + is_renderer_initiated_(is_renderer_initiated),
|
| is_same_page_(false),
|
| is_synchronous_(is_synchronous),
|
| is_srcdoc_(is_srcdoc),
|
| @@ -110,6 +114,10 @@ bool NavigationHandleImpl::IsParentMainFrame() {
|
| return false;
|
| }
|
|
|
| +bool NavigationHandleImpl::IsRendererInitiated() {
|
| + return is_renderer_initiated_;
|
| +}
|
| +
|
| bool NavigationHandleImpl::IsSynchronousNavigation() {
|
| return is_synchronous_;
|
| }
|
|
|