| 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 20 matching lines...) Expand all Loading... |
| 31 #include "content/common/ax_content_node_data.h" | 31 #include "content/common/ax_content_node_data.h" |
| 32 #include "content/common/content_export.h" | 32 #include "content/common/content_export.h" |
| 33 #include "content/common/download/mhtml_save_status.h" | 33 #include "content/common/download/mhtml_save_status.h" |
| 34 #include "content/common/frame.mojom.h" | 34 #include "content/common/frame.mojom.h" |
| 35 #include "content/common/frame_message_enums.h" | 35 #include "content/common/frame_message_enums.h" |
| 36 #include "content/common/frame_replication_state.h" | 36 #include "content/common/frame_replication_state.h" |
| 37 #include "content/common/image_downloader/image_downloader.mojom.h" | 37 #include "content/common/image_downloader/image_downloader.mojom.h" |
| 38 #include "content/common/navigation_params.h" | 38 #include "content/common/navigation_params.h" |
| 39 #include "content/public/browser/render_frame_host.h" | 39 #include "content/public/browser/render_frame_host.h" |
| 40 #include "content/public/common/javascript_message_type.h" | 40 #include "content/public/common/javascript_message_type.h" |
| 41 #include "content/public/common/previews_state.h" |
| 41 #include "media/mojo/interfaces/interface_factory.mojom.h" | 42 #include "media/mojo/interfaces/interface_factory.mojom.h" |
| 42 #include "net/http/http_response_headers.h" | 43 #include "net/http/http_response_headers.h" |
| 43 #include "services/service_manager/public/cpp/interface_factory.h" | 44 #include "services/service_manager/public/cpp/interface_factory.h" |
| 44 #include "services/service_manager/public/cpp/interface_registry.h" | 45 #include "services/service_manager/public/cpp/interface_registry.h" |
| 45 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" | 46 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" |
| 46 #include "third_party/WebKit/public/web/WebTextDirection.h" | 47 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| 47 #include "third_party/WebKit/public/web/WebTreeScopeType.h" | 48 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
| 48 #include "ui/accessibility/ax_node_data.h" | 49 #include "ui/accessibility/ax_node_data.h" |
| 49 #include "ui/base/page_transition_types.h" | 50 #include "ui/base/page_transition_types.h" |
| 50 | 51 |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 // Tells the renderer that this RenderFrame will soon be swapped out, and thus | 588 // Tells the renderer that this RenderFrame will soon be swapped out, and thus |
| 588 // not to create any new modal dialogs until it happens. This must be done | 589 // not to create any new modal dialogs until it happens. This must be done |
| 589 // separately so that the ScopedPageLoadDeferrers of any current dialogs are | 590 // separately so that the ScopedPageLoadDeferrers of any current dialogs are |
| 590 // no longer on the stack when we attempt to swap it out. | 591 // no longer on the stack when we attempt to swap it out. |
| 591 void SuppressFurtherDialogs(); | 592 void SuppressFurtherDialogs(); |
| 592 | 593 |
| 593 void SetHasReceivedUserGesture(); | 594 void SetHasReceivedUserGesture(); |
| 594 | 595 |
| 595 void ClearFocusedElement(); | 596 void ClearFocusedElement(); |
| 596 | 597 |
| 597 // PlzNavigate: returns the LoFi state of the last successful navigation that | 598 // PlzNavigate: returns the Previews state of the last successful navigation |
| 598 // made a network request. | 599 // that made a network request. |
| 599 LoFiState last_navigation_lofi_state() const { | 600 PreviewsState last_navigation_previews_state() const { |
| 600 return last_navigation_lofi_state_; | 601 return last_navigation_previews_state_; |
| 601 } | 602 } |
| 602 | 603 |
| 603 bool has_focused_editable_element() const { | 604 bool has_focused_editable_element() const { |
| 604 return has_focused_editable_element_; | 605 return has_focused_editable_element_; |
| 605 } | 606 } |
| 606 | 607 |
| 607 protected: | 608 protected: |
| 608 friend class RenderFrameHostFactory; | 609 friend class RenderFrameHostFactory; |
| 609 | 610 |
| 610 // |flags| is a combination of CreateRenderFrameFlags. | 611 // |flags| is a combination of CreateRenderFrameFlags. |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1086 std::unique_ptr<WebUIImpl> pending_web_ui_; | 1087 std::unique_ptr<WebUIImpl> pending_web_ui_; |
| 1087 WebUI::TypeID pending_web_ui_type_; | 1088 WebUI::TypeID pending_web_ui_type_; |
| 1088 | 1089 |
| 1089 // If true the associated WebUI should be reused when CommitPendingWebUI is | 1090 // If true the associated WebUI should be reused when CommitPendingWebUI is |
| 1090 // called (no pending instance should be set). | 1091 // called (no pending instance should be set). |
| 1091 bool should_reuse_web_ui_; | 1092 bool should_reuse_web_ui_; |
| 1092 | 1093 |
| 1093 // If true, then the RenderFrame has selected text. | 1094 // If true, then the RenderFrame has selected text. |
| 1094 bool has_selection_; | 1095 bool has_selection_; |
| 1095 | 1096 |
| 1096 // PlzNavigate: The LoFi state of the last navigation. This is used during | 1097 // PlzNavigate: The Previews state of the last navigation. This is used during |
| 1097 // history navigation of subframes to ensure that subframes navigate with the | 1098 // history navigation of subframes to ensure that subframes navigate with the |
| 1098 // same LoFi status as the top-level frame. | 1099 // same Previews status as the top-level frame. |
| 1099 LoFiState last_navigation_lofi_state_; | 1100 PreviewsState last_navigation_previews_state_; |
| 1100 | 1101 |
| 1101 mojo::Binding<mojom::FrameHost> frame_host_binding_; | 1102 mojo::Binding<mojom::FrameHost> frame_host_binding_; |
| 1102 mojom::FramePtr frame_; | 1103 mojom::FramePtr frame_; |
| 1103 | 1104 |
| 1104 // If this is true then this object was created in response to a renderer | 1105 // If this is true then this object was created in response to a renderer |
| 1105 // initiated request. Init() will be called, and until then navigation | 1106 // initiated request. Init() will be called, and until then navigation |
| 1106 // requests should be queued. | 1107 // requests should be queued. |
| 1107 bool waiting_for_init_; | 1108 bool waiting_for_init_; |
| 1108 | 1109 |
| 1109 // If true then this frame's document has a focused element which is editable. | 1110 // If true then this frame's document has a focused element which is editable. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1129 | 1130 |
| 1130 // NOTE: This must be the last member. | 1131 // NOTE: This must be the last member. |
| 1131 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1132 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1132 | 1133 |
| 1133 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1134 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1134 }; | 1135 }; |
| 1135 | 1136 |
| 1136 } // namespace content | 1137 } // namespace content |
| 1137 | 1138 |
| 1138 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1139 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |