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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 // canceled or suspended. This is important if we later return to this | 340 // canceled or suspended. This is important if we later return to this |
341 // RenderFrameHost. | 341 // RenderFrameHost. |
342 void CancelSuspendedNavigations(); | 342 void CancelSuspendedNavigations(); |
343 | 343 |
344 // Runs the beforeunload handler for this frame. |for_navigation| indicates | 344 // Runs the beforeunload handler for this frame. |for_navigation| indicates |
345 // whether this call is for the current frame during a cross-process | 345 // whether this call is for the current frame during a cross-process |
346 // navigation. False means we're closing the entire tab. | 346 // navigation. False means we're closing the entire tab. |
347 // PlzNavigate: this call happens on all browser-initiated navigations. | 347 // PlzNavigate: this call happens on all browser-initiated navigations. |
348 void DispatchBeforeUnload(bool for_navigation); | 348 void DispatchBeforeUnload(bool for_navigation); |
349 | 349 |
| 350 // Returns true if a call to DispatchBeforeUnload will actually send the |
| 351 // BeforeUnload IPC. This is the case if the current renderer is live and this |
| 352 // frame is the main frame. |
| 353 bool ShouldDispatchBeforeUnload(); |
| 354 |
350 // Set the frame's opener to null in the renderer process in response to an | 355 // Set the frame's opener to null in the renderer process in response to an |
351 // action in another renderer process. | 356 // action in another renderer process. |
352 void DisownOpener(); | 357 void DisownOpener(); |
353 | 358 |
354 // Deletes the current selection plus the specified number of characters | 359 // Deletes the current selection plus the specified number of characters |
355 // before and after the selection or caret. | 360 // before and after the selection or caret. |
356 void ExtendSelectionAndDelete(size_t before, size_t after); | 361 void ExtendSelectionAndDelete(size_t before, size_t after); |
357 | 362 |
358 // Notifies the RenderFrame that the JavaScript message that was shown was | 363 // Notifies the RenderFrame that the JavaScript message that was shown was |
359 // closed by the user. | 364 // closed by the user. |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 | 735 |
731 // NOTE: This must be the last member. | 736 // NOTE: This must be the last member. |
732 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 737 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
733 | 738 |
734 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 739 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
735 }; | 740 }; |
736 | 741 |
737 } // namespace content | 742 } // namespace content |
738 | 743 |
739 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 744 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |