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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 // that made a network request. The PreviewsState is a bitmask of potentially | 610 // that made a network request. The PreviewsState is a bitmask of potentially |
611 // several Previews optimizations. | 611 // several Previews optimizations. |
612 PreviewsState last_navigation_previews_state() const { | 612 PreviewsState last_navigation_previews_state() const { |
613 return last_navigation_previews_state_; | 613 return last_navigation_previews_state_; |
614 } | 614 } |
615 | 615 |
616 bool has_focused_editable_element() const { | 616 bool has_focused_editable_element() const { |
617 return has_focused_editable_element_; | 617 return has_focused_editable_element_; |
618 } | 618 } |
619 | 619 |
| 620 // This value is sent from the renderer and shouldn't be trusted. |
| 621 // TODO(alexclarke): Remove once there is a solution for stable frame IDs. See |
| 622 // crbug.com/715541 |
| 623 const std::string& untrusted_devtools_frame_id() const { |
| 624 return untrusted_devtools_frame_id_; |
| 625 } |
| 626 |
620 // Cancels any blocked request for the frame and its subframes. | 627 // Cancels any blocked request for the frame and its subframes. |
621 void CancelBlockedRequestsForFrame(); | 628 void CancelBlockedRequestsForFrame(); |
622 | 629 |
623 #if defined(OS_ANDROID) | 630 #if defined(OS_ANDROID) |
624 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost(); | 631 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost(); |
625 service_manager::InterfaceProvider* GetJavaInterfaces() override; | 632 service_manager::InterfaceProvider* GetJavaInterfaces() override; |
626 #endif | 633 #endif |
627 | 634 |
628 // Returns an unguessable token for this RFHI. This provides a temporary way | 635 // Returns an unguessable token for this RFHI. This provides a temporary way |
629 // to identify a RenderFrameHost that's compatible with IPC. Else, one needs | 636 // to identify a RenderFrameHost that's compatible with IPC. Else, one needs |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 int job_id, | 782 int job_id, |
776 MhtmlSaveStatus save_status, | 783 MhtmlSaveStatus save_status, |
777 const std::set<std::string>& digests_of_uris_of_serialized_resources, | 784 const std::set<std::string>& digests_of_uris_of_serialized_resources, |
778 base::TimeDelta renderer_main_thread_time); | 785 base::TimeDelta renderer_main_thread_time); |
779 void OnSelectionChanged(const base::string16& text, | 786 void OnSelectionChanged(const base::string16& text, |
780 uint32_t offset, | 787 uint32_t offset, |
781 const gfx::Range& range); | 788 const gfx::Range& range); |
782 void OnFocusedNodeChanged(bool is_editable_element, | 789 void OnFocusedNodeChanged(bool is_editable_element, |
783 const gfx::Rect& bounds_in_frame_widget); | 790 const gfx::Rect& bounds_in_frame_widget); |
784 void OnSetHasReceivedUserGesture(); | 791 void OnSetHasReceivedUserGesture(); |
| 792 void OnSetDevToolsFrameId(const std::string& devtools_frame_id); |
785 | 793 |
786 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) | 794 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
787 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); | 795 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); |
788 void OnHidePopup(); | 796 void OnHidePopup(); |
789 #endif | 797 #endif |
790 #if defined(OS_ANDROID) | 798 #if defined(OS_ANDROID) |
791 void OnNavigationHandledByEmbedder(); | 799 void OnNavigationHandledByEmbedder(); |
792 void ForwardGetInterfaceToRenderFrame(const std::string& interface_name, | 800 void ForwardGetInterfaceToRenderFrame(const std::string& interface_name, |
793 mojo::ScopedMessagePipeHandle pipe); | 801 mojo::ScopedMessagePipeHandle pipe); |
794 #endif | 802 #endif |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1196 std::unique_ptr<JavaInterfaceProvider> java_interface_registry_; | 1204 std::unique_ptr<JavaInterfaceProvider> java_interface_registry_; |
1197 #endif | 1205 #endif |
1198 | 1206 |
1199 mojo::BindingSet<service_manager::mojom::InterfaceProvider> | 1207 mojo::BindingSet<service_manager::mojom::InterfaceProvider> |
1200 interface_provider_bindings_; | 1208 interface_provider_bindings_; |
1201 | 1209 |
1202 // IPC-friendly token that represents this host for AndroidOverlays, if we | 1210 // IPC-friendly token that represents this host for AndroidOverlays, if we |
1203 // have created one yet. | 1211 // have created one yet. |
1204 base::Optional<base::UnguessableToken> overlay_routing_token_; | 1212 base::Optional<base::UnguessableToken> overlay_routing_token_; |
1205 | 1213 |
| 1214 // This value is sent from the renderer and shouldn't be trusted. |
| 1215 // TODO(alexclarke): Remove once there is a solution for stable frame IDs. See |
| 1216 // crbug.com/715541 |
| 1217 std::string untrusted_devtools_frame_id_; |
| 1218 |
1206 // NOTE: This must be the last member. | 1219 // NOTE: This must be the last member. |
1207 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1220 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1208 | 1221 |
1209 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1222 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1210 }; | 1223 }; |
1211 | 1224 |
1212 } // namespace content | 1225 } // namespace content |
1213 | 1226 |
1214 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1227 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |