| 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 38604692338f2e9caabc1c3447cdc77b1a6fcbed..786a10689547899ec902e8b8edf43b70bc37621d 100644
|
| --- a/content/browser/frame_host/navigation_handle_impl.h
|
| +++ b/content/browser/frame_host/navigation_handle_impl.h
|
| @@ -92,7 +92,8 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
|
| const base::TimeTicks& navigation_start,
|
| int pending_nav_entry_id,
|
| bool started_from_context_menu,
|
| - bool should_bypass_main_world_csp);
|
| + bool should_bypass_main_world_csp,
|
| + bool is_form_submission);
|
| ~NavigationHandleImpl() override;
|
|
|
| // NavigationHandle implementation:
|
| @@ -151,6 +152,10 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
|
| NavigationData* GetNavigationData() override;
|
| bool should_bypass_main_world_csp() const;
|
|
|
| + // Whether or not the navigation has been initiated by a form submission. It
|
| + // is currently not available when PlzNavigate is disabled.
|
| + bool is_form_submission() const;
|
| +
|
| // The NavigatorDelegate to notify/query for various navigation events.
|
| // Normally this is the WebContents, except if this NavigationHandle was
|
| // created during a navigation to an interstitial page. In this case it will
|
| @@ -354,7 +359,8 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
|
| const base::TimeTicks& navigation_start,
|
| int pending_nav_entry_id,
|
| bool started_from_context_menu,
|
| - bool should_bypass_main_world_csp);
|
| + bool should_bypass_main_world_csp,
|
| + bool is_form_submission);
|
|
|
| NavigationThrottle::ThrottleCheckResult CheckWillStartRequest();
|
| NavigationThrottle::ThrottleCheckResult CheckWillRedirectRequest();
|
| @@ -503,6 +509,9 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
|
| // blocked by the parent frame's CSP.
|
| bool should_bypass_main_world_csp_;
|
|
|
| + // Whether or not the navigation results from the submission of a form.
|
| + bool is_form_submission_;
|
| +
|
| base::WeakPtrFactory<NavigationHandleImpl> weak_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
|
|
|