Chromium Code Reviews| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 390 void SetNavigationsSuspended(bool suspend, | 390 void SetNavigationsSuspended(bool suspend, |
| 391 const base::TimeTicks& proceed_time); | 391 const base::TimeTicks& proceed_time); |
| 392 | 392 |
| 393 // Clears any suspended navigation state after a cross-site navigation is | 393 // Clears any suspended navigation state after a cross-site navigation is |
| 394 // canceled or suspended. This is important if we later return to this | 394 // canceled or suspended. This is important if we later return to this |
| 395 // RenderFrameHost. | 395 // RenderFrameHost. |
| 396 void CancelSuspendedNavigations(); | 396 void CancelSuspendedNavigations(); |
| 397 | 397 |
| 398 // Runs the beforeunload handler for this frame. |for_navigation| indicates | 398 // Runs the beforeunload handler for this frame. |for_navigation| indicates |
| 399 // whether this call is for the current frame during a cross-process | 399 // whether this call is for the current frame during a cross-process |
| 400 // navigation. False means we're closing the entire tab. | 400 // navigation. False means we're closing the entire tab. |is_reload| |
| 401 // indicates whether the navigation is a reload of the page or a different | |
|
nasko
2016/05/09 21:56:04
nit: s/or a different kind of navigation/or not/
clamy
2016/05/10 01:58:09
Done.
| |
| 402 // kind of navigation. If |for_navigation| is false, |is_reload| should be | |
| 403 // false as well. | |
| 401 // PlzNavigate: this call happens on all browser-initiated navigations. | 404 // PlzNavigate: this call happens on all browser-initiated navigations. |
| 402 void DispatchBeforeUnload(bool for_navigation); | 405 void DispatchBeforeUnload(bool for_navigation, bool is_reload); |
| 403 | 406 |
| 404 // Returns true if a call to DispatchBeforeUnload will actually send the | 407 // Returns true if a call to DispatchBeforeUnload will actually send the |
| 405 // BeforeUnload IPC. This is the case if the current renderer is live and this | 408 // BeforeUnload IPC. This is the case if the current renderer is live and this |
| 406 // frame is the main frame. | 409 // frame is the main frame. |
| 407 bool ShouldDispatchBeforeUnload(); | 410 bool ShouldDispatchBeforeUnload(); |
| 408 | 411 |
| 409 // Update the frame's opener in the renderer process in response to the | 412 // Update the frame's opener in the renderer process in response to the |
| 410 // opener being modified (e.g., with window.open or being set to null) in | 413 // opener being modified (e.g., with window.open or being set to null) in |
| 411 // another renderer process. | 414 // another renderer process. |
| 412 void UpdateOpener(); | 415 void UpdateOpener(); |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 970 | 973 |
| 971 // NOTE: This must be the last member. | 974 // NOTE: This must be the last member. |
| 972 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 975 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 973 | 976 |
| 974 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 977 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 975 }; | 978 }; |
| 976 | 979 |
| 977 } // namespace content | 980 } // namespace content |
| 978 | 981 |
| 979 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 982 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |