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

Side by Side Diff: content/shell/renderer/layout_test/layout_test_render_frame_observer.h

Issue 2955123002: Mojo-ify ShellViewHostMsg_LayoutDumpResponse. (Closed)
Patch Set: Addressed CR feedback from alexmos@. Created 3 years, 5 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 unified diff | Download patch
OLDNEW
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 #include "content/shell/common/layout_test.mojom.h" 10 #include "content/shell/common/layout_test.mojom.h"
11 #include "mojo/public/cpp/bindings/associated_binding.h" 11 #include "mojo/public/cpp/bindings/associated_binding.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class LayoutTestRenderFrameObserver : public RenderFrameObserver, 15 class LayoutTestRenderFrameObserver : public RenderFrameObserver,
16 public mojom::LayoutTestControl { 16 public mojom::LayoutTestControl {
17 public: 17 public:
18 explicit LayoutTestRenderFrameObserver(RenderFrame* render_frame); 18 explicit LayoutTestRenderFrameObserver(RenderFrame* render_frame);
19 ~LayoutTestRenderFrameObserver() override; 19 ~LayoutTestRenderFrameObserver() override;
20 20
21 private: 21 private:
22 // RenderFrameObserver implementation. 22 // RenderFrameObserver implementation.
23 void OnDestruct() override; 23 void OnDestruct() override;
24 24
25 void LayoutDumpRequest() override; 25 void DumpFrameLayout(DumpFrameLayoutCallback callback) override;
26 void SetTestConfiguration(mojom::ShellTestConfigurationPtr config) override; 26 void SetTestConfiguration(mojom::ShellTestConfigurationPtr config) override;
27 void ReplicateTestConfiguration( 27 void ReplicateTestConfiguration(
28 mojom::ShellTestConfigurationPtr config) override; 28 mojom::ShellTestConfigurationPtr config) override;
29 void SetupSecondaryRenderer() override; 29 void SetupSecondaryRenderer() override;
30 void BindRequest(mojom::LayoutTestControlAssociatedRequest request); 30 void BindRequest(mojom::LayoutTestControlAssociatedRequest request);
31 31
32 mojo::AssociatedBinding<mojom::LayoutTestControl> binding_; 32 mojo::AssociatedBinding<mojom::LayoutTestControl> binding_;
33 DISALLOW_COPY_AND_ASSIGN(LayoutTestRenderFrameObserver); 33 DISALLOW_COPY_AND_ASSIGN(LayoutTestRenderFrameObserver);
34 }; 34 };
35 35
36 } // namespace content 36 } // namespace content
37 37
38 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_RENDER_FRAME_OBSERVER_ H_ 38 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_LAYOUT_TEST_RENDER_FRAME_OBSERVER_ H_
OLDNEW
« no previous file with comments | « content/shell/common/shell_messages.h ('k') | content/shell/renderer/layout_test/layout_test_render_frame_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698