| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 } | 83 } |
| 84 | 84 |
| 85 int frame_tree_node_id() const { | 85 int frame_tree_node_id() const { |
| 86 return frame_tree_node_id_; | 86 return frame_tree_node_id_; |
| 87 } | 87 } |
| 88 | 88 |
| 89 const std::string& frame_name() const { | 89 const std::string& frame_name() const { |
| 90 return replication_state_.name; | 90 return replication_state_.name; |
| 91 } | 91 } |
| 92 | 92 |
| 93 const url::Origin& frame_origin() const { return replication_state_.origin; } |
| 94 |
| 93 size_t child_count() const { | 95 size_t child_count() const { |
| 94 return children_.size(); | 96 return children_.size(); |
| 95 } | 97 } |
| 96 | 98 |
| 97 FrameTreeNode* parent() const { return parent_; } | 99 FrameTreeNode* parent() const { return parent_; } |
| 98 | 100 |
| 99 FrameTreeNode* opener() const { return opener_; } | 101 FrameTreeNode* opener() const { return opener_; } |
| 100 | 102 |
| 101 // Assigns a new opener for this node and, if |opener| is non-null, registers | 103 // Assigns a new opener for this node and, if |opener| is non-null, registers |
| 102 // an observer that will clear this node's opener if |opener| is ever | 104 // an observer that will clear this node's opener if |opener| is ever |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 base::ObserverList<Observer> observers_; | 290 base::ObserverList<Observer> observers_; |
| 289 | 291 |
| 290 base::TimeTicks last_focus_time_; | 292 base::TimeTicks last_focus_time_; |
| 291 | 293 |
| 292 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 294 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
| 293 }; | 295 }; |
| 294 | 296 |
| 295 } // namespace content | 297 } // namespace content |
| 296 | 298 |
| 297 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 299 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
| OLD | NEW |