Index: content/browser/frame_host/navigation_entry_impl.h |
diff --git a/content/browser/frame_host/navigation_entry_impl.h b/content/browser/frame_host/navigation_entry_impl.h |
index 051a3ba909f524b31fa1385bbff4774379f73c74..8d97ef39871055859583b4c36a48b7e4d78c0423 100644 |
--- a/content/browser/frame_host/navigation_entry_impl.h |
+++ b/content/browser/frame_host/navigation_entry_impl.h |
@@ -192,6 +192,15 @@ class CONTENT_EXPORT NavigationEntryImpl |
// there is one in this NavigationEntry. |
FrameNavigationEntry* GetFrameEntry(FrameTreeNode* frame_tree_node) const; |
+ // Returns the FrameNavigationEntry corresponding to the frame with the given |
+ // |unique_name|, if any. This is useful when the FrameTreeNode cannot be used |
+ // to find the entry, such as for a newly created subframe in a history |
+ // navigation. Callers should update the FrameTreeNode ID of the entry so that |
+ // it can be found with |GetFrameEntry| above. |
+ // TODO(creis): Generate or verify the unique_name in the browser process. |
+ FrameNavigationEntry* GetFrameEntryByUniqueName( |
+ const std::string& unique_name) const; |
+ |
void set_unique_id(int unique_id) { |
unique_id_ = unique_id; |
} |