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 "content/public/renderer/render_frame_observer.h" | 9 #include "content/public/renderer/render_frame_observer.h" |
10 | 10 |
11 namespace test_runner { | 11 namespace test_runner { |
12 struct LayoutDumpFlags; | 12 struct LayoutDumpFlags; |
13 } | 13 } |
14 | 14 |
15 namespace IPC { | 15 namespace IPC { |
16 class Message; | 16 class Message; |
17 } // namespace IPC | 17 } // namespace IPC |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 class RenderFrame; | 20 class RenderFrame; |
| 21 struct ShellTestConfiguration; |
21 | 22 |
22 class LayoutTestRenderFrameObserver : public RenderFrameObserver { | 23 class LayoutTestRenderFrameObserver : public RenderFrameObserver { |
23 public: | 24 public: |
24 explicit LayoutTestRenderFrameObserver(RenderFrame* render_frame); | 25 explicit LayoutTestRenderFrameObserver(RenderFrame* render_frame); |
25 ~LayoutTestRenderFrameObserver() override {} | 26 ~LayoutTestRenderFrameObserver() override {} |
26 | 27 |
27 bool OnMessageReceived(const IPC::Message& message) override; | 28 bool OnMessageReceived(const IPC::Message& message) override; |
28 | 29 |
29 private: | 30 private: |
30 void OnLayoutDumpRequest( | 31 void OnLayoutDumpRequest( |
31 const test_runner::LayoutDumpFlags& layout_dump_flags); | 32 const test_runner::LayoutDumpFlags& layout_dump_flags); |
| 33 void OnSetTestConfiguration(const ShellTestConfiguration& test_config); |
| 34 void OnReplicateTestConfiguration(const ShellTestConfiguration& test_config); |
32 | 35 |
33 DISALLOW_COPY_AND_ASSIGN(LayoutTestRenderFrameObserver); | 36 DISALLOW_COPY_AND_ASSIGN(LayoutTestRenderFrameObserver); |
34 }; | 37 }; |
35 | 38 |
36 } // namespace content | 39 } // namespace content |
37 | 40 |
38 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_RENDER_FRAME_OBSERVER_
H_ | 41 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_RENDER_FRAME_OBSERVER_
H_ |
OLD | NEW |