| 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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 void ResetLoadingState(); | 560 void ResetLoadingState(); |
| 561 | 561 |
| 562 // Tells the renderer that this RenderFrame will soon be swapped out, and thus | 562 // Tells the renderer that this RenderFrame will soon be swapped out, and thus |
| 563 // not to create any new modal dialogs until it happens. This must be done | 563 // not to create any new modal dialogs until it happens. This must be done |
| 564 // separately so that the ScopedPageLoadDeferrers of any current dialogs are | 564 // separately so that the ScopedPageLoadDeferrers of any current dialogs are |
| 565 // no longer on the stack when we attempt to swap it out. | 565 // no longer on the stack when we attempt to swap it out. |
| 566 void SuppressFurtherDialogs(); | 566 void SuppressFurtherDialogs(); |
| 567 | 567 |
| 568 void SetHasReceivedUserGesture(); | 568 void SetHasReceivedUserGesture(); |
| 569 | 569 |
| 570 // PlzNavigate: returns the LoFi state of the last successful navigation that | 570 // PlzNavigate: returns the Previews state of the last successful navigation |
| 571 // made a network request. | 571 // that made a network request. |
| 572 LoFiState last_navigation_lofi_state() const { | 572 int last_navigation_previews_state() const { |
| 573 return last_navigation_lofi_state_; | 573 return last_navigation_previews_state_; |
| 574 } | 574 } |
| 575 | 575 |
| 576 protected: | 576 protected: |
| 577 friend class RenderFrameHostFactory; | 577 friend class RenderFrameHostFactory; |
| 578 | 578 |
| 579 // |flags| is a combination of CreateRenderFrameFlags. | 579 // |flags| is a combination of CreateRenderFrameFlags. |
| 580 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost | 580 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost |
| 581 // should be the abstraction needed here, but we need RenderViewHost to pass | 581 // should be the abstraction needed here, but we need RenderViewHost to pass |
| 582 // into WebContentsObserver::FrameDetached for now. | 582 // into WebContentsObserver::FrameDetached for now. |
| 583 RenderFrameHostImpl(SiteInstance* site_instance, | 583 RenderFrameHostImpl(SiteInstance* site_instance, |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1042 std::unique_ptr<WebUIImpl> pending_web_ui_; | 1042 std::unique_ptr<WebUIImpl> pending_web_ui_; |
| 1043 WebUI::TypeID pending_web_ui_type_; | 1043 WebUI::TypeID pending_web_ui_type_; |
| 1044 | 1044 |
| 1045 // If true the associated WebUI should be reused when CommitPendingWebUI is | 1045 // If true the associated WebUI should be reused when CommitPendingWebUI is |
| 1046 // called (no pending instance should be set). | 1046 // called (no pending instance should be set). |
| 1047 bool should_reuse_web_ui_; | 1047 bool should_reuse_web_ui_; |
| 1048 | 1048 |
| 1049 // If true, then the RenderFrame has selected text. | 1049 // If true, then the RenderFrame has selected text. |
| 1050 bool has_selection_; | 1050 bool has_selection_; |
| 1051 | 1051 |
| 1052 // PlzNavigate: The LoFi state of the last navigation. This is used during | 1052 // PlzNavigate: The Previews state of the last navigation. This is used during |
| 1053 // history navigation of subframes to ensure that subframes navigate with the | 1053 // history navigation of subframes to ensure that subframes navigate with the |
| 1054 // same LoFi status as the top-level frame. | 1054 // same Previews status as the top-level frame. |
| 1055 LoFiState last_navigation_lofi_state_; | 1055 int last_navigation_previews_state_; |
| 1056 | 1056 |
| 1057 mojo::Binding<mojom::FrameHost> frame_host_binding_; | 1057 mojo::Binding<mojom::FrameHost> frame_host_binding_; |
| 1058 mojom::FramePtr frame_; | 1058 mojom::FramePtr frame_; |
| 1059 | 1059 |
| 1060 // If this is true then this object was created in response to a renderer | 1060 // If this is true then this object was created in response to a renderer |
| 1061 // initiated request. Init() will be called, and until then navigation | 1061 // initiated request. Init() will be called, and until then navigation |
| 1062 // requests should be queued. | 1062 // requests should be queued. |
| 1063 bool waiting_for_init_; | 1063 bool waiting_for_init_; |
| 1064 | 1064 |
| 1065 typedef std::pair<CommonNavigationParams, BeginNavigationParams> | 1065 typedef std::pair<CommonNavigationParams, BeginNavigationParams> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1081 remote_associated_interfaces_; | 1081 remote_associated_interfaces_; |
| 1082 // NOTE: This must be the last member. | 1082 // NOTE: This must be the last member. |
| 1083 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1083 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1084 | 1084 |
| 1085 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1085 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1086 }; | 1086 }; |
| 1087 | 1087 |
| 1088 } // namespace content | 1088 } // namespace content |
| 1089 | 1089 |
| 1090 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1090 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |