| OLD | NEW |
| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // handler and determine whether a transfer to a different RenderFrameHost is | 118 // handler and determine whether a transfer to a different RenderFrameHost is |
| 119 // needed. | 119 // needed. |
| 120 void OnCrossSiteResponse( | 120 void OnCrossSiteResponse( |
| 121 const GlobalRequestID& global_request_id, | 121 const GlobalRequestID& global_request_id, |
| 122 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request, | 122 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request, |
| 123 const std::vector<GURL>& transfer_url_chain, | 123 const std::vector<GURL>& transfer_url_chain, |
| 124 const Referrer& referrer, | 124 const Referrer& referrer, |
| 125 PageTransition page_transition, | 125 PageTransition page_transition, |
| 126 bool should_replace_current_entry); | 126 bool should_replace_current_entry); |
| 127 | 127 |
| 128 // Hack to get this subframe to swap out, without yet moving over all the | 128 // Tells the renderer that this RenderFrame is being swapped out for one in a |
| 129 // SwapOut state and machinery from RenderViewHost. | 129 // different renderer process. It should run its unload handler and move to |
| 130 // a blank document. The renderer should preserve the Frame object until it |
| 131 // exits, in case we come back. The renderer can exit if it has no other |
| 132 // active RenderFrames, but not until WasSwappedOut is called (when it is no |
| 133 // longer visible). |
| 130 void SwapOut(); | 134 void SwapOut(); |
| 135 |
| 131 void OnSwappedOut(bool timed_out); | 136 void OnSwappedOut(bool timed_out); |
| 132 bool is_swapped_out() { return is_swapped_out_; } | 137 bool is_swapped_out() { return is_swapped_out_; } |
| 133 void set_swapped_out(bool is_swapped_out) { | 138 void set_swapped_out(bool is_swapped_out) { |
| 134 is_swapped_out_ = is_swapped_out; | 139 is_swapped_out_ = is_swapped_out; |
| 135 } | 140 } |
| 136 | 141 |
| 137 // Sets the RVH for |this| as pending shutdown. |on_swap_out| will be called | 142 // Sets the RVH for |this| as pending shutdown. |on_swap_out| will be called |
| 138 // when the SwapOutACK is received. | 143 // when the SwapOutACK is received. |
| 139 void SetPendingShutdown(const base::Closure& on_swap_out); | 144 void SetPendingShutdown(const base::Closure& on_swap_out); |
| 140 | 145 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 248 |
| 244 // When the last BeforeUnload message was sent. | 249 // When the last BeforeUnload message was sent. |
| 245 base::TimeTicks send_before_unload_start_time_; | 250 base::TimeTicks send_before_unload_start_time_; |
| 246 | 251 |
| 247 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 252 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 248 }; | 253 }; |
| 249 | 254 |
| 250 } // namespace content | 255 } // namespace content |
| 251 | 256 |
| 252 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 257 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |