| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // Causes the renderer to close the current page, including running its | 173 // Causes the renderer to close the current page, including running its |
| 174 // onunload event handler. A ClosePage_ACK message will be sent to the | 174 // onunload event handler. A ClosePage_ACK message will be sent to the |
| 175 // ResourceDispatcherHost when it is finished. | 175 // ResourceDispatcherHost when it is finished. |
| 176 // | 176 // |
| 177 // Please see ViewMsg_ClosePage in resource_messages_internal.h for a | 177 // Please see ViewMsg_ClosePage in resource_messages_internal.h for a |
| 178 // description of the parameters. | 178 // description of the parameters. |
| 179 void ClosePage(bool for_cross_site_transition, | 179 void ClosePage(bool for_cross_site_transition, |
| 180 int new_render_process_host_id, | 180 int new_render_process_host_id, |
| 181 int new_request_id); | 181 int new_request_id); |
| 182 | 182 |
| 183 // Called by ResourceDispatcherHost after the ClosePageACK is received. |
| 184 void OnClosePageACK(bool for_cross_site_transition); |
| 185 |
| 183 // Close the page ignoring whether it has unload events registers. | 186 // Close the page ignoring whether it has unload events registers. |
| 184 // This is called after the beforeunload and unload events have fired | 187 // This is called after the beforeunload and unload events have fired |
| 185 // and the user has agreed to continue with closing the page. | 188 // and the user has agreed to continue with closing the page. |
| 186 void ClosePageIgnoringUnloadEvents(); | 189 void ClosePageIgnoringUnloadEvents(); |
| 187 | 190 |
| 188 // Sets whether this RenderViewHost has an outstanding cross-site request, | 191 // Sets whether this RenderViewHost has an outstanding cross-site request, |
| 189 // for which another renderer will need to run an onunload event handler. | 192 // for which another renderer will need to run an onunload event handler. |
| 190 // This is called before the first navigation event for this RenderViewHost, | 193 // This is called before the first navigation event for this RenderViewHost, |
| 191 // and again after the corresponding OnCrossSiteResponse. | 194 // and again after the corresponding OnCrossSiteResponse. |
| 192 void SetHasPendingCrossSiteRequest(bool has_pending_request, int request_id); | 195 void SetHasPendingCrossSiteRequest(bool has_pending_request, int request_id); |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 // The termination status of the last render view that terminated. | 737 // The termination status of the last render view that terminated. |
| 735 base::TerminationStatus render_view_termination_status_; | 738 base::TerminationStatus render_view_termination_status_; |
| 736 | 739 |
| 737 // The enabled/disabled states of various commands. | 740 // The enabled/disabled states of various commands. |
| 738 std::map<RenderViewCommand, CommandState> command_states_; | 741 std::map<RenderViewCommand, CommandState> command_states_; |
| 739 | 742 |
| 740 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 743 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 741 }; | 744 }; |
| 742 | 745 |
| 743 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 746 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |