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 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 int64 frame_id, | 39 int64 frame_id, |
40 const std::string& name); | 40 const std::string& name); |
41 | 41 |
42 ~FrameTreeNode(); | 42 ~FrameTreeNode(); |
43 | 43 |
44 bool IsMainFrame() const; | 44 bool IsMainFrame() const; |
45 | 45 |
46 void AddChild(scoped_ptr<FrameTreeNode> child, int frame_routing_id); | 46 void AddChild(scoped_ptr<FrameTreeNode> child, int frame_routing_id); |
47 void RemoveChild(FrameTreeNode* child); | 47 void RemoveChild(FrameTreeNode* child); |
48 | 48 |
49 // Clears process specific-state after a main frame process swap. | 49 // Clears process specific-state in this node to prepare for a new process. |
50 // TODO(creis): Look into how we can remove the need for this method. | 50 void ResetForNewProcess(); |
51 void ResetForMainFrameSwap(); | |
52 | 51 |
53 FrameTree* frame_tree() const { | 52 FrameTree* frame_tree() const { |
54 return frame_tree_; | 53 return frame_tree_; |
55 } | 54 } |
56 | 55 |
57 Navigator* navigator() { | 56 Navigator* navigator() { |
58 return navigator_.get(); | 57 return navigator_.get(); |
59 } | 58 } |
60 | 59 |
61 RenderFrameHostManager* render_manager() { | 60 RenderFrameHostManager* render_manager() { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // TODO(creis): Remove this when we can store subframe URLs in the | 146 // TODO(creis): Remove this when we can store subframe URLs in the |
148 // NavigationController. | 147 // NavigationController. |
149 GURL current_url_; | 148 GURL current_url_; |
150 | 149 |
151 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 150 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
152 }; | 151 }; |
153 | 152 |
154 } // namespace content | 153 } // namespace content |
155 | 154 |
156 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 155 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
OLD | NEW |