| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // Hack to get this subframe to swap out, without yet moving over all the | 117 // Tells the renderer that this RenderFrame is being swapped out for one in a |
| 118 // SwapOut state and machinery from RenderViewHost. | 118 // different renderer process. It should run its unload handler and move to |
| 119 // a blank document. The renderer should preserve the Frame object until it |
| 120 // exits, in case we come back. The renderer can exit if it has no other |
| 121 // active RenderFrames, but not until WasSwappedOut is called (when it is no |
| 122 // longer visible). |
| 119 void SwapOut(); | 123 void SwapOut(); |
| 124 |
| 120 void OnSwappedOut(bool timed_out); | 125 void OnSwappedOut(bool timed_out); |
| 121 bool is_swapped_out() { return is_swapped_out_; } | 126 bool is_swapped_out() { return is_swapped_out_; } |
| 122 void set_swapped_out(bool is_swapped_out) { | 127 void set_swapped_out(bool is_swapped_out) { |
| 123 is_swapped_out_ = is_swapped_out; | 128 is_swapped_out_ = is_swapped_out; |
| 124 } | 129 } |
| 125 | 130 |
| 126 // Sets the RVH for |this| as pending shutdown. |on_swap_out| will be called | 131 // Sets the RVH for |this| as pending shutdown. |on_swap_out| will be called |
| 127 // when the SwapOutACK is received. | 132 // when the SwapOutACK is received. |
| 128 void SetPendingShutdown(const base::Closure& on_swap_out); | 133 void SetPendingShutdown(const base::Closure& on_swap_out); |
| 129 | 134 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 234 |
| 230 // When the last BeforeUnload message was sent. | 235 // When the last BeforeUnload message was sent. |
| 231 base::TimeTicks send_before_unload_start_time_; | 236 base::TimeTicks send_before_unload_start_time_; |
| 232 | 237 |
| 233 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 238 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 234 }; | 239 }; |
| 235 | 240 |
| 236 } // namespace content | 241 } // namespace content |
| 237 | 242 |
| 238 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 243 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |