Popular sites on the NTP: Try to keep the ordering constant
[chromium-blink-merge.git] / content / public / browser / render_widget_host_iterator.h
blobc18be800d9773268b641849c7ddafa79474b92d0
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_ITERATOR_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_ITERATOR_H_
8 namespace content {
10 class RenderWidgetHost;
12 // RenderWidgetHostIterator is used to safely iterate over a list of
13 // RenderWidgetHosts.
14 class RenderWidgetHostIterator {
15 public:
16 virtual ~RenderWidgetHostIterator() {}
18 // Returns the next RenderWidgetHost in the list. Returns nullptr if none is
19 // available.
20 virtual RenderWidgetHost* GetNextHost() = 0;
23 } // namespace content
25 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_ITERATOR_H_