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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 // Resets the loading state. Following this call, the RenderFrameHost will be | 572 // Resets the loading state. Following this call, the RenderFrameHost will be |
573 // in a non-loading state. | 573 // in a non-loading state. |
574 void ResetLoadingState(); | 574 void ResetLoadingState(); |
575 | 575 |
576 // Tells the renderer that this RenderFrame will soon be swapped out, and thus | 576 // Tells the renderer that this RenderFrame will soon be swapped out, and thus |
577 // not to create any new modal dialogs until it happens. This must be done | 577 // not to create any new modal dialogs until it happens. This must be done |
578 // separately so that the ScopedPageLoadDeferrers of any current dialogs are | 578 // separately so that the ScopedPageLoadDeferrers of any current dialogs are |
579 // no longer on the stack when we attempt to swap it out. | 579 // no longer on the stack when we attempt to swap it out. |
580 void SuppressFurtherDialogs(); | 580 void SuppressFurtherDialogs(); |
581 | 581 |
| 582 void SetHasReceivedUserGesture(); |
| 583 |
582 // PlzNavigate: returns the LoFi state of the last successful navigation that | 584 // PlzNavigate: returns the LoFi state of the last successful navigation that |
583 // made a network request. | 585 // made a network request. |
584 LoFiState last_navigation_lofi_state() const { | 586 LoFiState last_navigation_lofi_state() const { |
585 return last_navigation_lofi_state_; | 587 return last_navigation_lofi_state_; |
586 } | 588 } |
587 | 589 |
588 protected: | 590 protected: |
589 friend class RenderFrameHostFactory; | 591 friend class RenderFrameHostFactory; |
590 | 592 |
591 // |flags| is a combination of CreateRenderFrameFlags. | 593 // |flags| is a combination of CreateRenderFrameFlags. |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 remote_associated_interfaces_; | 1052 remote_associated_interfaces_; |
1051 // NOTE: This must be the last member. | 1053 // NOTE: This must be the last member. |
1052 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1054 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1053 | 1055 |
1054 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1056 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1055 }; | 1057 }; |
1056 | 1058 |
1057 } // namespace content | 1059 } // namespace content |
1058 | 1060 |
1059 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1061 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |