OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/renderer_host/frame_tree_node.h" | 5 #include "content/browser/frame_host/frame_tree_node.h" |
6 | 6 |
7 #include <queue> | 7 #include <queue> |
8 | 8 |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "content/browser/renderer_host/render_frame_host_impl.h" | 10 #include "content/browser/frame_host/render_frame_host_impl.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 const int64 FrameTreeNode::kInvalidFrameId = -1; | 14 const int64 FrameTreeNode::kInvalidFrameId = -1; |
15 | 15 |
16 FrameTreeNode::FrameTreeNode(int64 frame_id, const std::string& name, | 16 FrameTreeNode::FrameTreeNode(int64 frame_id, const std::string& name, |
17 scoped_ptr<RenderFrameHostImpl> render_frame_host) | 17 scoped_ptr<RenderFrameHostImpl> render_frame_host) |
18 : frame_id_(frame_id), | 18 : frame_id_(frame_id), |
19 frame_name_(name), | 19 frame_name_(name), |
20 owns_render_frame_host_(true), | 20 owns_render_frame_host_(true), |
(...skipping 27 matching lines...) Expand all Loading... |
48 | 48 |
49 owns_render_frame_host_ = false; | 49 owns_render_frame_host_ = false; |
50 frame_id_ = kInvalidFrameId; | 50 frame_id_ = kInvalidFrameId; |
51 current_url_ = GURL(); | 51 current_url_ = GURL(); |
52 children_.clear(); | 52 children_.clear(); |
53 | 53 |
54 render_frame_host_ = new_render_frame_host; | 54 render_frame_host_ = new_render_frame_host; |
55 } | 55 } |
56 | 56 |
57 } // namespace content | 57 } // namespace content |
OLD | NEW |