Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Unified Diff: content/public/renderer/render_frame_visitor.h

Issue 2797383002: Introduce RenderFrameVisitor (Closed)
Patch Set: Use the correct copyright notice Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/renderer/render_frame.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/render_frame_visitor.h
diff --git a/content/public/renderer/render_frame_visitor.h b/content/public/renderer/render_frame_visitor.h
new file mode 100644
index 0000000000000000000000000000000000000000..8977fedd5d54938c861525e4c51dc7403d1430c8
--- /dev/null
+++ b/content/public/renderer/render_frame_visitor.h
@@ -0,0 +1,23 @@
+// Copyright 2017 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_FRAME_VISITOR_H_
+#define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_VISITOR_H_
+
+namespace content {
+
+class RenderFrame;
+
+class RenderFrameVisitor {
+ public:
+ // Return true to continue visiting RenderFrames or false to stop.
+ virtual bool Visit(RenderFrame* render_frame) = 0;
+
+ protected:
+ virtual ~RenderFrameVisitor() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_VISITOR_H_
« no previous file with comments | « content/public/renderer/render_frame.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698