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

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: Add include for msvc 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 // that made a network request. The PreviewsState is a bitmask of potentially 620 // that made a network request. The PreviewsState is a bitmask of potentially
621 // several Previews optimizations. 621 // several Previews optimizations.
622 PreviewsState last_navigation_previews_state() const { 622 PreviewsState last_navigation_previews_state() const {
623 return last_navigation_previews_state_; 623 return last_navigation_previews_state_;
624 } 624 }
625 625
626 bool has_focused_editable_element() const { 626 bool has_focused_editable_element() const {
627 return has_focused_editable_element_; 627 return has_focused_editable_element_;
628 } 628 }
629 629
630 const std::string& devtools_frame_id() const { return devtools_frame_id_; }
631
630 // Cancels any blocked request for the frame and its subframes. 632 // Cancels any blocked request for the frame and its subframes.
631 void CancelBlockedRequestsForFrame(); 633 void CancelBlockedRequestsForFrame();
632 634
633 #if defined(OS_ANDROID) 635 #if defined(OS_ANDROID)
634 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost(); 636 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost();
635 service_manager::InterfaceProvider* GetJavaInterfaces() override; 637 service_manager::InterfaceProvider* GetJavaInterfaces() override;
636 #endif 638 #endif
637 639
638 protected: 640 protected:
639 friend class RenderFrameHostFactory; 641 friend class RenderFrameHostFactory;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 int job_id, 776 int job_id,
775 MhtmlSaveStatus save_status, 777 MhtmlSaveStatus save_status,
776 const std::set<std::string>& digests_of_uris_of_serialized_resources, 778 const std::set<std::string>& digests_of_uris_of_serialized_resources,
777 base::TimeDelta renderer_main_thread_time); 779 base::TimeDelta renderer_main_thread_time);
778 void OnSelectionChanged(const base::string16& text, 780 void OnSelectionChanged(const base::string16& text,
779 uint32_t offset, 781 uint32_t offset,
780 const gfx::Range& range); 782 const gfx::Range& range);
781 void OnFocusedNodeChanged(bool is_editable_element, 783 void OnFocusedNodeChanged(bool is_editable_element,
782 const gfx::Rect& bounds_in_frame_widget); 784 const gfx::Rect& bounds_in_frame_widget);
783 void OnSetHasReceivedUserGesture(); 785 void OnSetHasReceivedUserGesture();
786 void OnSetDevToolsFrameId(const std::string& devtools_frame_id);
784 787
785 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) 788 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU)
786 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); 789 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params);
787 void OnHidePopup(); 790 void OnHidePopup();
788 #endif 791 #endif
789 #if defined(OS_ANDROID) 792 #if defined(OS_ANDROID)
790 void OnNavigationHandledByEmbedder(); 793 void OnNavigationHandledByEmbedder();
791 void ForwardGetInterfaceToRenderFrame(const std::string& interface_name, 794 void ForwardGetInterfaceToRenderFrame(const std::string& interface_name,
792 mojo::ScopedMessagePipeHandle pipe); 795 mojo::ScopedMessagePipeHandle pipe);
793 #endif 796 #endif
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 // this RenderFrameHost. This provides access to interfaces implemented in 1174 // this RenderFrameHost. This provides access to interfaces implemented in
1172 // Java in the browser process to C++ code in the browser process. 1175 // Java in the browser process to C++ code in the browser process.
1173 std::unique_ptr<service_manager::InterfaceProvider> java_interfaces_; 1176 std::unique_ptr<service_manager::InterfaceProvider> java_interfaces_;
1174 1177
1175 // An InterfaceRegistry that forwards interface requests from Java to the 1178 // An InterfaceRegistry that forwards interface requests from Java to the
1176 // RenderFrame. This provides access to interfaces implemented in the renderer 1179 // RenderFrame. This provides access to interfaces implemented in the renderer
1177 // to Java code in the browser process. 1180 // to Java code in the browser process.
1178 std::unique_ptr<service_manager::InterfaceRegistry> java_interface_registry_; 1181 std::unique_ptr<service_manager::InterfaceRegistry> java_interface_registry_;
1179 #endif 1182 #endif
1180 1183
1184 std::string devtools_frame_id_;
Charlie Reis 2017/04/24 20:26:42 dgozman@: Is this something that's RFH specific, o
dgozman 2017/04/25 22:04:48 This is currently per-{Local,Render}Frame so RFH i
1185
1181 // NOTE: This must be the last member. 1186 // NOTE: This must be the last member.
1182 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1187 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1183 1188
1184 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1189 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1185 }; 1190 };
1186 1191
1187 } // namespace content 1192 } // namespace content
1188 1193
1189 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1194 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698