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 HasUnloadHandler(); | 437 bool ShouldDispatchUnload(); |
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 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1186 | 1186 |
1187 // NOTE: This must be the last member. | 1187 // NOTE: This must be the last member. |
1188 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1188 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1189 | 1189 |
1190 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1190 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1191 }; | 1191 }; |
1192 | 1192 |
1193 } // namespace content | 1193 } // namespace content |
1194 | 1194 |
1195 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1195 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |