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

Unified Diff: content/browser/frame_host/frame_tree.h

Issue 938073002: Clarify comment on FrameTree::AddFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5f0c7aad333650f8fe2549f45346bbc710d751f1..df236574e30aeaeffe8dfa4108f08d7d1e593655 100644
--- a/content/browser/frame_host/frame_tree.h
+++ b/content/browser/frame_host/frame_tree.h
@@ -70,6 +70,10 @@ class CONTENT_EXPORT FrameTree {
void ForEach(const base::Callback<bool(FrameTreeNode*)>& on_node) const;
// Frame tree manipulation routines.
+ // |process_id| is required to disambiguate |new_routing_id|, and it must
+ // match the process of the |parent| node. Otherwise this method returns
+ // nullptr. Passing MSG_ROUTING_NONE for |new_routing_id| will allocate a new
+ // routing ID for the new frame.
RenderFrameHostImpl* AddFrame(FrameTreeNode* parent,
int process_id,
int new_routing_id,
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698