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_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <iterator> | 10 #include <iterator> |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 friend class FrameTree; | 76 friend class FrameTree; |
77 | 77 |
78 NodeRange(FrameTreeNode* root, FrameTreeNode* node_to_skip); | 78 NodeRange(FrameTreeNode* root, FrameTreeNode* node_to_skip); |
79 | 79 |
80 FrameTreeNode* const root_; | 80 FrameTreeNode* const root_; |
81 FrameTreeNode* const node_to_skip_; | 81 FrameTreeNode* const node_to_skip_; |
82 }; | 82 }; |
83 | 83 |
84 class CONTENT_EXPORT ConstNodeIterator { | 84 class CONTENT_EXPORT ConstNodeIterator { |
85 public: | 85 public: |
| 86 ConstNodeIterator(const ConstNodeIterator& other); |
86 ~ConstNodeIterator(); | 87 ~ConstNodeIterator(); |
87 | 88 |
88 ConstNodeIterator& operator++(); | 89 ConstNodeIterator& operator++(); |
89 | 90 |
90 bool operator==(const ConstNodeIterator& rhs) const; | 91 bool operator==(const ConstNodeIterator& rhs) const; |
91 bool operator!=(const ConstNodeIterator& rhs) const { | 92 bool operator!=(const ConstNodeIterator& rhs) const { |
92 return !(*this == rhs); | 93 return !(*this == rhs); |
93 } | 94 } |
94 | 95 |
95 const FrameTreeNode* operator*() { return current_node_; } | 96 const FrameTreeNode* operator*() { return current_node_; } |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 295 |
295 // Overall load progress. | 296 // Overall load progress. |
296 double load_progress_; | 297 double load_progress_; |
297 | 298 |
298 DISALLOW_COPY_AND_ASSIGN(FrameTree); | 299 DISALLOW_COPY_AND_ASSIGN(FrameTree); |
299 }; | 300 }; |
300 | 301 |
301 } // namespace content | 302 } // namespace content |
302 | 303 |
303 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ | 304 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ |
OLD | NEW |