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

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

Issue 297973002: Navigation transitions: Block first response until after transitions have run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // handler and determine whether a transfer to a different RenderFrameHost is 107 // handler and determine whether a transfer to a different RenderFrameHost is
108 // needed. 108 // needed.
109 void OnCrossSiteResponse( 109 void OnCrossSiteResponse(
110 const GlobalRequestID& global_request_id, 110 const GlobalRequestID& global_request_id,
111 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request, 111 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request,
112 const std::vector<GURL>& transfer_url_chain, 112 const std::vector<GURL>& transfer_url_chain,
113 const Referrer& referrer, 113 const Referrer& referrer,
114 PageTransition page_transition, 114 PageTransition page_transition,
115 bool should_replace_current_entry); 115 bool should_replace_current_entry);
116 116
117 // Called on the current RenderFrameHost when the network response is first
118 // receieved.
119 void OnDeferredAfterResponseStarted(const GlobalRequestID& global_request_id);
120
117 // Tells the renderer that this RenderFrame is being swapped out for one in a 121 // Tells the renderer that this RenderFrame is being swapped out for one in a
118 // different renderer process. It should run its unload handler, move to 122 // different renderer process. It should run its unload handler, move to
119 // a blank document and create a RenderFrameProxy to replace the RenderFrame. 123 // a blank document and create a RenderFrameProxy to replace the RenderFrame.
120 // The renderer should preserve the Proxy object until it exits, in case we 124 // The renderer should preserve the Proxy object until it exits, in case we
121 // come back. The renderer can exit if it has no other active RenderFrames, 125 // come back. The renderer can exit if it has no other active RenderFrames,
122 // but not until WasSwappedOut is called (when it is no longer visible). 126 // but not until WasSwappedOut is called (when it is no longer visible).
123 void SwapOut(RenderFrameProxyHost* proxy); 127 void SwapOut(RenderFrameProxyHost* proxy);
124 128
125 void OnSwappedOut(bool timed_out); 129 void OnSwappedOut(bool timed_out);
126 bool is_swapped_out() { return is_swapped_out_; } 130 bool is_swapped_out() { return is_swapped_out_; }
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 base::TimeTicks send_before_unload_start_time_; 291 base::TimeTicks send_before_unload_start_time_;
288 292
289 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 293 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
290 294
291 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 295 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
292 }; 296 };
293 297
294 } // namespace content 298 } // namespace content
295 299
296 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 300 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698