| Index: content/renderer/render_frame_impl.h
|
| diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
|
| index d1731be222111b2dea5bf60785f8dfa10e02e495..383f066e68ffef258bf85c4403a3b200d48a93da 100644
|
| --- a/content/renderer/render_frame_impl.h
|
| +++ b/content/renderer/render_frame_impl.h
|
| @@ -1396,6 +1396,36 @@ class CONTENT_EXPORT RenderFrameImpl
|
| // See BindingsPolicy for details.
|
| int enabled_bindings_ = 0;
|
|
|
| + // PlzNavigate:
|
| + // Contains information about a pending navigation to be sent to the browser.
|
| + // We save information about the navigation in decidePolicyForNavigation().
|
| + // The navigation is sent to the browser in didStartProvisionalLoad().
|
| + // Please see the BeginNavigation() for information.
|
| + struct PendingNavigationInfo {
|
| + blink::WebNavigationType navigation_type;
|
| + blink::WebNavigationPolicy policy;
|
| + bool replaces_current_history_item;
|
| + bool history_navigation_in_new_child_frame;
|
| + bool client_redirect;
|
| + bool cache_disabled;
|
| + blink::WebFormElement form;
|
| +
|
| + PendingNavigationInfo(const NavigationPolicyInfo& info)
|
| + : navigation_type(info.navigationType),
|
| + policy(info.defaultPolicy),
|
| + replaces_current_history_item(info.replacesCurrentHistoryItem),
|
| + history_navigation_in_new_child_frame(
|
| + info.isHistoryNavigationInNewChildFrame),
|
| + client_redirect(info.isClientRedirect),
|
| + cache_disabled(info.isCacheDisabled),
|
| + form(info.form) {}
|
| + };
|
| +
|
| + // PlzNavigate: Contains information about a pending navigation to be sent to
|
| + // the browser. This state is allocated in decidePolicyForNavigation() and
|
| + // is used and released in didStartProvisionalLoad().
|
| + std::unique_ptr<PendingNavigationInfo> pending_navigation_info_;
|
| +
|
| base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
|
|
|