summaryrefslogtreecommitdiffstats
path: root/content/browser/frame_host
diff options
context:
space:
mode:
authorahest <ahest@yandex-team.ru>2016-03-17 15:23:46 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-17 22:25:12 +0000
commit49ed0e3a1623c8524d4eae827da2ae37bfba06dc (patch)
treec8097fa3695f869348cebe7d123cbe0992badbbe /content/browser/frame_host
parenta1ec21c1e81c5df3c0ec3307973c8f7fb032154f (diff)
downloadchromium_src-49ed0e3a1623c8524d4eae827da2ae37bfba06dc.zip
chromium_src-49ed0e3a1623c8524d4eae827da2ae37bfba06dc.tar.gz
chromium_src-49ed0e3a1623c8524d4eae827da2ae37bfba06dc.tar.bz2
Make NodeIterator more STL-friendly.
This allows it to be used in various algorithms. BUG= CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Review URL: https://codereview.chromium.org/1728253003 Cr-Commit-Position: refs/heads/master@{#381807}
Diffstat (limited to 'content/browser/frame_host')
-rw-r--r--content/browser/frame_host/frame_tree.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/browser/frame_host/frame_tree.h b/content/browser/frame_host/frame_tree.h
index d6638e2..3255d3b 100644
--- a/content/browser/frame_host/frame_tree.h
+++ b/content/browser/frame_host/frame_tree.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include <iterator>
#include <string>
#include "base/callback.h"
@@ -43,7 +44,8 @@ class CONTENT_EXPORT FrameTree {
class NodeRange;
class ConstNodeRange;
- class CONTENT_EXPORT NodeIterator {
+ class CONTENT_EXPORT NodeIterator
+ : public std::iterator<std::forward_iterator_tag, FrameTreeNode> {
public:
NodeIterator(const NodeIterator& other);
~NodeIterator();