Index: content/browser/frame_host/render_frame_host_impl.h |
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h |
index c28f7d5bfeaf3b1b154d323e09b0a7f9f775634e..18d25b71d752b45fbe9df3343cc7ec373d25b833 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.h |
+++ b/content/browser/frame_host/render_frame_host_impl.h |
@@ -617,6 +617,13 @@ class CONTENT_EXPORT RenderFrameHostImpl |
return has_focused_editable_element_; |
} |
+ // This value is sent from the renderer and shouldn't be trusted. |
+ // TODO(alexclarke): Remove once there is a solution for stable frame IDs. See |
+ // crbug.com/715541 |
+ const std::string& untrusted_devtools_frame_id() const { |
+ return untrusted_devtools_frame_id_; |
+ } |
+ |
// Cancels any blocked request for the frame and its subframes. |
void CancelBlockedRequestsForFrame(); |
@@ -774,6 +781,7 @@ class CONTENT_EXPORT RenderFrameHostImpl |
void OnFocusedNodeChanged(bool is_editable_element, |
const gfx::Rect& bounds_in_frame_widget); |
void OnSetHasReceivedUserGesture(); |
+ void OnSetDevToolsFrameId(const std::string& devtools_frame_id); |
#if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); |
@@ -1193,6 +1201,11 @@ class CONTENT_EXPORT RenderFrameHostImpl |
mojo::BindingSet<service_manager::mojom::InterfaceProvider> |
interface_provider_bindings_; |
+ // This value is sent from the renderer and shouldn't be trusted. |
+ // TODO(alexclarke): Remove once there is a solution for stable frame IDs. See |
+ // crbug.com/715541 |
+ std::string untrusted_devtools_frame_id_; |
+ |
// NOTE: This must be the last member. |
base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |