OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_RENDER_FRAME_OBSERVER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_RENDER_FRAME_OBSERVER_H_ |
6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_RENDER_FRAME_OBSERVER_H_ | 6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_RENDER_FRAME_OBSERVER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/test_runner/layout_dump_flags.h" |
9 #include "content/public/renderer/render_frame_observer.h" | 10 #include "content/public/renderer/render_frame_observer.h" |
10 | 11 |
| 12 namespace IPC { |
| 13 class Message; |
| 14 } // namespace IPC |
| 15 |
11 namespace content { | 16 namespace content { |
12 class RenderFrame; | 17 class RenderFrame; |
13 | 18 |
14 class LayoutTestRenderFrameObserver : public RenderFrameObserver { | 19 class LayoutTestRenderFrameObserver : public RenderFrameObserver { |
15 public: | 20 public: |
16 explicit LayoutTestRenderFrameObserver(RenderFrame* render_frame); | 21 explicit LayoutTestRenderFrameObserver(RenderFrame* render_frame); |
17 ~LayoutTestRenderFrameObserver() override {} | 22 ~LayoutTestRenderFrameObserver() override {} |
18 | 23 |
| 24 bool OnMessageReceived(const IPC::Message& message) override; |
| 25 |
19 private: | 26 private: |
| 27 void OnLayoutDumpRequest(test_runner::LayoutDumpFlags layout_dump_flags); |
| 28 |
20 DISALLOW_COPY_AND_ASSIGN(LayoutTestRenderFrameObserver); | 29 DISALLOW_COPY_AND_ASSIGN(LayoutTestRenderFrameObserver); |
21 }; | 30 }; |
22 | 31 |
23 } // namespace content | 32 } // namespace content |
24 | 33 |
25 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_RENDER_FRAME_OBSERVER_
H_ | 34 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_RENDER_FRAME_OBSERVER_
H_ |
OLD | NEW |