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

Side by Side Diff: content/browser/web_contents/frame_tree_node.cc

Issue 23841002: Create a new RenderFrameHost per child frame when --site-per-process is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: notify observers regardless of flag Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/web_contents/frame_tree_node.h"
6
7 #include <queue>
8
9 #include "base/stl_util.h"
10
11 namespace content {
12
13 FrameTreeNode::FrameTreeNode(int64 frame_id, const std::string& name)
14 : frame_id_(frame_id),
15 frame_name_(name) {
16 }
17
18 FrameTreeNode::~FrameTreeNode() {
19 }
20
21 void FrameTreeNode::AddChild(FrameTreeNode* child) {
22 children_.push_back(child);
23 }
24
25 void FrameTreeNode::RemoveChild(int64 child_id) {
26 std::vector<FrameTreeNode*>::iterator iter;
27
28 for (iter = children_.begin(); iter != children_.end(); ++iter) {
29 if ((*iter)->frame_id() == child_id)
30 break;
31 }
32
33 if (iter != children_.end())
34 children_.erase(iter);
35 }
36
37 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/frame_tree_node.h ('k') | content/browser/web_contents/interstitial_page_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698