Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2830753004: Pipe the devTools FrameId from blink into the browser for headless (Closed)
Patch Set: Changes for creis@ Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 // This value is sent from the renderer and shouldn't be trusted.
619 // TODO(alexclarke): Remove once there is a solution for stable frame IDs. See
620 // crbug.com/715541
621 const std::string& untrusted_devtools_frame_id() const {
622 return untrusted_devtools_frame_id_;
623 }
624
618 // Cancels any blocked request for the frame and its subframes. 625 // Cancels any blocked request for the frame and its subframes.
619 void CancelBlockedRequestsForFrame(); 626 void CancelBlockedRequestsForFrame();
620 627
621 #if defined(OS_ANDROID) 628 #if defined(OS_ANDROID)
622 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost(); 629 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost();
623 service_manager::InterfaceProvider* GetJavaInterfaces() override; 630 service_manager::InterfaceProvider* GetJavaInterfaces() override;
624 #endif 631 #endif
625 632
626 protected: 633 protected:
627 friend class RenderFrameHostFactory; 634 friend class RenderFrameHostFactory;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 int job_id, 772 int job_id,
766 MhtmlSaveStatus save_status, 773 MhtmlSaveStatus save_status,
767 const std::set<std::string>& digests_of_uris_of_serialized_resources, 774 const std::set<std::string>& digests_of_uris_of_serialized_resources,
768 base::TimeDelta renderer_main_thread_time); 775 base::TimeDelta renderer_main_thread_time);
769 void OnSelectionChanged(const base::string16& text, 776 void OnSelectionChanged(const base::string16& text,
770 uint32_t offset, 777 uint32_t offset,
771 const gfx::Range& range); 778 const gfx::Range& range);
772 void OnFocusedNodeChanged(bool is_editable_element, 779 void OnFocusedNodeChanged(bool is_editable_element,
773 const gfx::Rect& bounds_in_frame_widget); 780 const gfx::Rect& bounds_in_frame_widget);
774 void OnSetHasReceivedUserGesture(); 781 void OnSetHasReceivedUserGesture();
782 void OnSetDevToolsFrameId(const std::string& devtools_frame_id);
775 783
776 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) 784 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU)
777 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); 785 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params);
778 void OnHidePopup(); 786 void OnHidePopup();
779 #endif 787 #endif
780 #if defined(OS_ANDROID) 788 #if defined(OS_ANDROID)
781 void OnNavigationHandledByEmbedder(); 789 void OnNavigationHandledByEmbedder();
782 void ForwardGetInterfaceToRenderFrame(const std::string& interface_name, 790 void ForwardGetInterfaceToRenderFrame(const std::string& interface_name,
783 mojo::ScopedMessagePipeHandle pipe); 791 mojo::ScopedMessagePipeHandle pipe);
784 #endif 792 #endif
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 // this RenderFrameHost. This provides access to interfaces implemented in 1185 // this RenderFrameHost. This provides access to interfaces implemented in
1178 // Java in the browser process to C++ code in the browser process. 1186 // Java in the browser process to C++ code in the browser process.
1179 std::unique_ptr<service_manager::InterfaceProvider> java_interfaces_; 1187 std::unique_ptr<service_manager::InterfaceProvider> java_interfaces_;
1180 1188
1181 // An InterfaceRegistry that forwards interface requests from Java to the 1189 // An InterfaceRegistry that forwards interface requests from Java to the
1182 // RenderFrame. This provides access to interfaces implemented in the renderer 1190 // RenderFrame. This provides access to interfaces implemented in the renderer
1183 // to Java code in the browser process. 1191 // to Java code in the browser process.
1184 std::unique_ptr<service_manager::InterfaceRegistry> java_interface_registry_; 1192 std::unique_ptr<service_manager::InterfaceRegistry> java_interface_registry_;
1185 #endif 1193 #endif
1186 1194
1195 // This value is sent from the renderer and shouldn't be trusted.
1196 // TODO(alexclarke): Remove once there is a solution for stable frame IDs. See
1197 // crbug.com/715541
1198 std::string untrusted_devtools_frame_id_;
1199
1187 // NOTE: This must be the last member. 1200 // NOTE: This must be the last member.
1188 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1201 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1189 1202
1190 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1203 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1191 }; 1204 };
1192 1205
1193 } // namespace content 1206 } // namespace content
1194 1207
1195 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1208 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698