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

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: Rebased Created 3 years, 8 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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 protected: 635 protected:
629 friend class RenderFrameHostFactory; 636 friend class RenderFrameHostFactory;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 int job_id, 774 int job_id,
768 MhtmlSaveStatus save_status, 775 MhtmlSaveStatus save_status,
769 const std::set<std::string>& digests_of_uris_of_serialized_resources, 776 const std::set<std::string>& digests_of_uris_of_serialized_resources,
770 base::TimeDelta renderer_main_thread_time); 777 base::TimeDelta renderer_main_thread_time);
771 void OnSelectionChanged(const base::string16& text, 778 void OnSelectionChanged(const base::string16& text,
772 uint32_t offset, 779 uint32_t offset,
773 const gfx::Range& range); 780 const gfx::Range& range);
774 void OnFocusedNodeChanged(bool is_editable_element, 781 void OnFocusedNodeChanged(bool is_editable_element,
775 const gfx::Rect& bounds_in_frame_widget); 782 const gfx::Rect& bounds_in_frame_widget);
776 void OnSetHasReceivedUserGesture(); 783 void OnSetHasReceivedUserGesture();
784 void OnSetDevToolsFrameId(const std::string& devtools_frame_id);
777 785
778 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) 786 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU)
779 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); 787 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params);
780 void OnHidePopup(); 788 void OnHidePopup();
781 #endif 789 #endif
782 #if defined(OS_ANDROID) 790 #if defined(OS_ANDROID)
783 void OnNavigationHandledByEmbedder(); 791 void OnNavigationHandledByEmbedder();
784 void ForwardGetInterfaceToRenderFrame(const std::string& interface_name, 792 void ForwardGetInterfaceToRenderFrame(const std::string& interface_name,
785 mojo::ScopedMessagePipeHandle pipe); 793 mojo::ScopedMessagePipeHandle pipe);
786 #endif 794 #endif
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 1194
1187 // An InterfaceRegistry that forwards interface requests from Java to the 1195 // An InterfaceRegistry that forwards interface requests from Java to the
1188 // RenderFrame. This provides access to interfaces implemented in the renderer 1196 // RenderFrame. This provides access to interfaces implemented in the renderer
1189 // to Java code in the browser process. 1197 // to Java code in the browser process.
1190 std::unique_ptr<service_manager::InterfaceRegistry> java_interface_registry_; 1198 std::unique_ptr<service_manager::InterfaceRegistry> java_interface_registry_;
1191 #endif 1199 #endif
1192 1200
1193 mojo::BindingSet<service_manager::mojom::InterfaceProvider> 1201 mojo::BindingSet<service_manager::mojom::InterfaceProvider>
1194 interface_provider_bindings_; 1202 interface_provider_bindings_;
1195 1203
1204 // This value is sent from the renderer and shouldn't be trusted.
1205 // TODO(alexclarke): Remove once there is a solution for stable frame IDs. See
1206 // crbug.com/715541
1207 std::string untrusted_devtools_frame_id_;
1208
1196 // NOTE: This must be the last member. 1209 // NOTE: This must be the last member.
1197 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1210 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1198 1211
1199 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1212 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1200 }; 1213 };
1201 1214
1202 } // namespace content 1215 } // namespace content
1203 1216
1204 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1217 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698