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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 // Simulate beforeunload ack on behalf of renderer if it's unrenresponsive. | 427 // Simulate beforeunload ack on behalf of renderer if it's unrenresponsive. |
428 void SimulateBeforeUnloadAck(); | 428 void SimulateBeforeUnloadAck(); |
429 | 429 |
430 // Returns true if a call to DispatchBeforeUnload will actually send the | 430 // Returns true if a call to DispatchBeforeUnload will actually send the |
431 // BeforeUnload IPC. This is the case if the current renderer is live and this | 431 // BeforeUnload IPC. This is the case if the current renderer is live and this |
432 // frame is the main frame. | 432 // frame is the main frame. |
433 bool ShouldDispatchBeforeUnload(); | 433 bool ShouldDispatchBeforeUnload(); |
434 | 434 |
435 // Returns true if the frame or any of its descendents have an onunload | 435 // Returns true if the frame or any of its descendents have an onunload |
436 // handler. | 436 // handler. |
437 bool ShouldDispatchUnload(); | 437 bool HasUnloadHandler(); |
438 | 438 |
439 // Update the frame's opener in the renderer process in response to the | 439 // Update the frame's opener in the renderer process in response to the |
440 // opener being modified (e.g., with window.open or being set to null) in | 440 // opener being modified (e.g., with window.open or being set to null) in |
441 // another renderer process. | 441 // another renderer process. |
442 void UpdateOpener(); | 442 void UpdateOpener(); |
443 | 443 |
444 // Set this frame as focused in the renderer process. This supports | 444 // Set this frame as focused in the renderer process. This supports |
445 // cross-process window.focus() calls. | 445 // cross-process window.focus() calls. |
446 void SetFocusedFrame(); | 446 void SetFocusedFrame(); |
447 | 447 |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1178 | 1178 |
1179 // NOTE: This must be the last member. | 1179 // NOTE: This must be the last member. |
1180 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1180 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1181 | 1181 |
1182 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1182 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1183 }; | 1183 }; |
1184 | 1184 |
1185 } // namespace content | 1185 } // namespace content |
1186 | 1186 |
1187 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1187 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |