Chromium Code Reviews| 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..10b353a23569bf0a48df57d3a791f84d4824c6f6 |
| --- /dev/null |
| +++ b/content/public/renderer/render_frame_visitor.h |
| @@ -0,0 +1,23 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
Charlie Reis
2017/04/11 21:26:33
nit: 2017, no (c)
Xiaocheng
2017/04/11 21:42:14
Just copied everything from render_view_visitor.h
|
| +// 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_ |