| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_VISITOR_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_VISITOR_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 class RenderView; | 9 class RenderView; |
| 10 | 10 |
| 11 namespace content { |
| 12 |
| 11 class RenderViewVisitor { | 13 class RenderViewVisitor { |
| 12 public: | 14 public: |
| 13 // Return true to continue visiting RenderViews or false to stop. | 15 // Return true to continue visiting RenderViews or false to stop. |
| 14 virtual bool Visit(RenderView* render_view) = 0; | 16 virtual bool Visit(RenderView* render_view) = 0; |
| 15 | 17 |
| 16 protected: | 18 protected: |
| 17 virtual ~RenderViewVisitor() {} | 19 virtual ~RenderViewVisitor() {} |
| 18 }; | 20 }; |
| 19 | 21 |
| 20 #endif // CONTENT_RENDERER_RENDER_VIEW_VISITOR_H_ | 22 } // namespace content |
| 23 |
| 24 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_ |
| OLD | NEW |