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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 } | 90 } |
91 | 91 |
92 int frame_tree_node_id() const { | 92 int frame_tree_node_id() const { |
93 return frame_tree_node_id_; | 93 return frame_tree_node_id_; |
94 } | 94 } |
95 | 95 |
96 const std::string& frame_name() const { | 96 const std::string& frame_name() const { |
97 return replication_state_.name; | 97 return replication_state_.name; |
98 } | 98 } |
99 | 99 |
| 100 const url::Origin& frame_origin() const { return replication_state_.origin; } |
| 101 |
100 size_t child_count() const { | 102 size_t child_count() const { |
101 return children_.size(); | 103 return children_.size(); |
102 } | 104 } |
103 | 105 |
104 FrameTreeNode* parent() const { return parent_; } | 106 FrameTreeNode* parent() const { return parent_; } |
105 | 107 |
106 FrameTreeNode* opener() const { return opener_; } | 108 FrameTreeNode* opener() const { return opener_; } |
107 | 109 |
108 // Assigns a new opener for this node and, if |opener| is non-null, registers | 110 // Assigns a new opener for this node and, if |opener| is non-null, registers |
109 // an observer that will clear this node's opener if |opener| is ever | 111 // an observer that will clear this node's opener if |opener| is ever |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 base::ObserverList<Observer> observers_; | 325 base::ObserverList<Observer> observers_; |
324 | 326 |
325 base::TimeTicks last_focus_time_; | 327 base::TimeTicks last_focus_time_; |
326 | 328 |
327 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 329 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
328 }; | 330 }; |
329 | 331 |
330 } // namespace content | 332 } // namespace content |
331 | 333 |
332 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 334 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
OLD | NEW |