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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 789643005: PlzNavigate: make content unit tests work with browser side navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cancel-navigations
Patch Set: Fixed nits Created 5 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 // Tells the renderer that this RenderFrame is being swapped out for one in a 239 // Tells the renderer that this RenderFrame is being swapped out for one in a
240 // different renderer process. It should run its unload handler and move to 240 // different renderer process. It should run its unload handler and move to
241 // a blank document. If |proxy| is not null, it should also create a 241 // a blank document. If |proxy| is not null, it should also create a
242 // RenderFrameProxy to replace the RenderFrame and set it to |is_loading| 242 // RenderFrameProxy to replace the RenderFrame and set it to |is_loading|
243 // state. The renderer should preserve the RenderFrameProxy object until it 243 // state. The renderer should preserve the RenderFrameProxy object until it
244 // exits, in case we come back. The renderer can exit if it has no other 244 // exits, in case we come back. The renderer can exit if it has no other
245 // active RenderFrames, but not until WasSwappedOut is called. 245 // active RenderFrames, but not until WasSwappedOut is called.
246 void SwapOut(RenderFrameProxyHost* proxy, bool is_loading); 246 void SwapOut(RenderFrameProxyHost* proxy, bool is_loading);
247 247
248 bool is_waiting_for_beforeunload_ack() const { 248 // Whether an ongoing navigation is waiting for a BeforeUnload ACK from the
249 return is_waiting_for_beforeunload_ack_; 249 // RenderFrame. Currently this only happens in cross-site navigations.
250 } 250 // PlzNavigate: this happens in every browser-initiated navigation that is not
251 // same-page.
252 bool IsWaitingForBeforeUnloadACK() const;
251 253
252 // Whether the RFH is waiting for an unload ACK from the renderer. 254 // Whether the RFH is waiting for an unload ACK from the renderer.
253 bool IsWaitingForUnloadACK() const; 255 bool IsWaitingForUnloadACK() const;
254 256
255 // Called when either the SwapOut request has been acknowledged or has timed 257 // Called when either the SwapOut request has been acknowledged or has timed
256 // out. 258 // out.
257 void OnSwappedOut(); 259 void OnSwappedOut();
258 260
259 // Whether this RenderFrameHost has been swapped out, such that the frame is 261 // Whether this RenderFrameHost has been swapped out, such that the frame is
260 // now rendered by a RenderFrameHost in a different process. 262 // now rendered by a RenderFrameHost in a different process.
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 629
628 // NOTE: This must be the last member. 630 // NOTE: This must be the last member.
629 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 631 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
630 632
631 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 633 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
632 }; 634 };
633 635
634 } // namespace content 636 } // namespace content
635 637
636 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 638 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigator_impl.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698