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

Unified Diff: content/public/browser/render_frame_host.h

Issue 1628423002: Add frameId to chrome.tabs.executeScript/insertCSS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissiondata-remove-process_id
Patch Set: Nits + comments Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/render_frame_host.h
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h
index a8f71fe3476e8a935a5be204b7a582b28ca37c9d..3db9cd8a736ff976cfcb2abee112cb91c1e97650 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -78,6 +78,14 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
// current RenderFrameHost.
virtual RenderFrameHost* GetParent() = 0;
+ // Calls |on_frame| for each child frame of this RenderFrameHost.
+ // Note: The RenderFrameHost parameter is not guaranteed to have a live
+ // RenderFrame counterpart in the renderer process. Callbacks should check
+ // IsRenderFrameLive, as sending IPC messages to it in this case will fail
+ // silently.
+ virtual void ForEachChildFrame(
+ const base::Callback<void(RenderFrameHost*)>& on_frame) = 0;
+
// Returns the FrameTreeNode ID for this frame. This ID is browser-global and
// uniquely identifies a frame that hosts content. The identifier is fixed at
// the creation of the frame and stays constant for the lifetime of the frame.

Powered by Google App Engine
This is Rietveld 408576698