Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / public / renderer / render_view_visitor.h
blobc424af35d87dfa10e5bd779a1cf2aa674c886c51
1 // Copyright (c) 2012 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_RENDERER_RENDER_VIEW_VISITOR_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_
8 namespace content {
10 class RenderView;
12 class RenderViewVisitor {
13 public:
14 // Return true to continue visiting RenderViews or false to stop.
15 virtual bool Visit(RenderView* render_view) = 0;
17 protected:
18 virtual ~RenderViewVisitor() {}
21 } // namespace content
23 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_