| Index: content/browser/frame_host/frame_tree.h
|
| diff --git a/content/browser/frame_host/frame_tree.h b/content/browser/frame_host/frame_tree.h
|
| index f1d90d1035a1a51f420fbcff7904037cb61e6229..179fcb3b26ca7d8d4985155e5aa1dd565753048d 100644
|
| --- a/content/browser/frame_host/frame_tree.h
|
| +++ b/content/browser/frame_host/frame_tree.h
|
| @@ -59,6 +59,12 @@ class CONTENT_EXPORT FrameTree {
|
| // Returns the FrameTreeNode with the given renderer-specific |routing_id|.
|
| FrameTreeNode* FindByRoutingID(int process_id, int routing_id);
|
|
|
| + // Returns the first frame in this tree with the given |name|, or the main
|
| + // frame if |name| is empty.
|
| + // Note that this does NOT support pseudo-names like _self, _top, and _blank,
|
| + // nor searching other FrameTrees (unlike blink::WebView::findFrameByName).
|
| + FrameTreeNode* FindByName(const std::string& name);
|
| +
|
| // Executes |on_node| on each node in the frame tree. If |on_node| returns
|
| // false, terminates the iteration immediately. Returning false is useful
|
| // if |on_node| is just doing a search over the tree. The iteration proceeds
|
|
|