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. 4 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_ITERATOR_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_ITERATOR_H_ 7 8 namespace content { 9 10 class RenderWidgetHost; 11 12 // RenderWidgetHostIterator is used to safely iterate over a list of 13 // RenderWidgetHosts. 14 class RenderWidgetHostIterator { 15 public: ~RenderWidgetHostIterator()16 virtual ~RenderWidgetHostIterator() {} 17 18 // Returns the next RenderWidgetHost in the list. Returns NULL if none is 19 // available. 20 virtual RenderWidgetHost* GetNextHost() = 0; 21 }; 22 23 } // namespace content 24 25 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_ITERATOR_H_ 26