| 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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 // that made a network request. The PreviewsState is a bitmask of potentially | 608 // that made a network request. The PreviewsState is a bitmask of potentially |
| 609 // several Previews optimizations. | 609 // several Previews optimizations. |
| 610 PreviewsState last_navigation_previews_state() const { | 610 PreviewsState last_navigation_previews_state() const { |
| 611 return last_navigation_previews_state_; | 611 return last_navigation_previews_state_; |
| 612 } | 612 } |
| 613 | 613 |
| 614 bool has_focused_editable_element() const { | 614 bool has_focused_editable_element() const { |
| 615 return has_focused_editable_element_; | 615 return has_focused_editable_element_; |
| 616 } | 616 } |
| 617 | 617 |
| 618 const std::string& devtools_frame_id() const { return devtools_frame_id_; } |
| 619 |
| 618 // Cancels any blocked request for the frame and its subframes. | 620 // Cancels any blocked request for the frame and its subframes. |
| 619 void CancelBlockedRequestsForFrame(); | 621 void CancelBlockedRequestsForFrame(); |
| 620 | 622 |
| 621 #if defined(OS_ANDROID) | 623 #if defined(OS_ANDROID) |
| 622 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost(); | 624 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost(); |
| 623 service_manager::InterfaceProvider* GetJavaInterfaces() override; | 625 service_manager::InterfaceProvider* GetJavaInterfaces() override; |
| 624 #endif | 626 #endif |
| 625 | 627 |
| 626 protected: | 628 protected: |
| 627 friend class RenderFrameHostFactory; | 629 friend class RenderFrameHostFactory; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 int job_id, | 767 int job_id, |
| 766 MhtmlSaveStatus save_status, | 768 MhtmlSaveStatus save_status, |
| 767 const std::set<std::string>& digests_of_uris_of_serialized_resources, | 769 const std::set<std::string>& digests_of_uris_of_serialized_resources, |
| 768 base::TimeDelta renderer_main_thread_time); | 770 base::TimeDelta renderer_main_thread_time); |
| 769 void OnSelectionChanged(const base::string16& text, | 771 void OnSelectionChanged(const base::string16& text, |
| 770 uint32_t offset, | 772 uint32_t offset, |
| 771 const gfx::Range& range); | 773 const gfx::Range& range); |
| 772 void OnFocusedNodeChanged(bool is_editable_element, | 774 void OnFocusedNodeChanged(bool is_editable_element, |
| 773 const gfx::Rect& bounds_in_frame_widget); | 775 const gfx::Rect& bounds_in_frame_widget); |
| 774 void OnSetHasReceivedUserGesture(); | 776 void OnSetHasReceivedUserGesture(); |
| 777 void OnSetDevToolsFrameId(const std::string& devtools_frame_id); |
| 775 | 778 |
| 776 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) | 779 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
| 777 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); | 780 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); |
| 778 void OnHidePopup(); | 781 void OnHidePopup(); |
| 779 #endif | 782 #endif |
| 780 #if defined(OS_ANDROID) | 783 #if defined(OS_ANDROID) |
| 781 void OnNavigationHandledByEmbedder(); | 784 void OnNavigationHandledByEmbedder(); |
| 782 void ForwardGetInterfaceToRenderFrame(const std::string& interface_name, | 785 void ForwardGetInterfaceToRenderFrame(const std::string& interface_name, |
| 783 mojo::ScopedMessagePipeHandle pipe); | 786 mojo::ScopedMessagePipeHandle pipe); |
| 784 #endif | 787 #endif |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1177 // this RenderFrameHost. This provides access to interfaces implemented in | 1180 // this RenderFrameHost. This provides access to interfaces implemented in |
| 1178 // Java in the browser process to C++ code in the browser process. | 1181 // Java in the browser process to C++ code in the browser process. |
| 1179 std::unique_ptr<service_manager::InterfaceProvider> java_interfaces_; | 1182 std::unique_ptr<service_manager::InterfaceProvider> java_interfaces_; |
| 1180 | 1183 |
| 1181 // An InterfaceRegistry that forwards interface requests from Java to the | 1184 // An InterfaceRegistry that forwards interface requests from Java to the |
| 1182 // RenderFrame. This provides access to interfaces implemented in the renderer | 1185 // RenderFrame. This provides access to interfaces implemented in the renderer |
| 1183 // to Java code in the browser process. | 1186 // to Java code in the browser process. |
| 1184 std::unique_ptr<service_manager::InterfaceRegistry> java_interface_registry_; | 1187 std::unique_ptr<service_manager::InterfaceRegistry> java_interface_registry_; |
| 1185 #endif | 1188 #endif |
| 1186 | 1189 |
| 1190 std::string devtools_frame_id_; |
| 1191 |
| 1187 // NOTE: This must be the last member. | 1192 // NOTE: This must be the last member. |
| 1188 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1193 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1189 | 1194 |
| 1190 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1195 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1191 }; | 1196 }; |
| 1192 | 1197 |
| 1193 } // namespace content | 1198 } // namespace content |
| 1194 | 1199 |
| 1195 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1200 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |