summaryrefslogtreecommitdiffstats
path: root/content/public/renderer/render_view_visitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/public/renderer/render_view_visitor.h')
-rw-r--r--content/public/renderer/render_view_visitor.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/content/public/renderer/render_view_visitor.h b/content/public/renderer/render_view_visitor.h
new file mode 100644
index 0000000..d7933c6
--- /dev/null
+++ b/content/public/renderer/render_view_visitor.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_
+#define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_
+#pragma once
+
+class RenderView;
+
+namespace content {
+
+class RenderViewVisitor {
+ public:
+ // Return true to continue visiting RenderViews or false to stop.
+ virtual bool Visit(RenderView* render_view) = 0;
+
+ protected:
+ virtual ~RenderViewVisitor() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_