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. 4 5#ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_ 6#define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_ 7 8namespace content { 9 10class RenderView; 11 12class RenderViewVisitor { 13 public: 14 // Return true to continue visiting RenderViews or false to stop. 15 virtual bool Visit(RenderView* render_view) = 0; 16 17 protected: 18 virtual ~RenderViewVisitor() {} 19}; 20 21} // namespace content 22 23#endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_ 24