1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_HTML_VIEWER_LAYOUT_TEST_HTML_VIEWER_H_
6 #define COMPONENTS_HTML_VIEWER_LAYOUT_TEST_HTML_VIEWER_H_
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "components/html_viewer/html_viewer.h"
11 #include "components/html_viewer/web_test_delegate_impl.h"
13 namespace test_runner
{
14 class WebTestInterfaces
;
17 namespace html_viewer
{
19 class LayoutTestHTMLViewer
: public HTMLViewer
{
21 LayoutTestHTMLViewer();
22 ~LayoutTestHTMLViewer() override
;
27 // Overridden from ApplicationDelegate:
28 void Initialize(mojo::ApplicationImpl
* app
) override
;
30 // Overridden from InterfaceFactory<ContentHandler>
31 void Create(mojo::ApplicationConnection
* connection
,
32 mojo::InterfaceRequest
<mojo::ContentHandler
> request
) override
;
34 scoped_ptr
<test_runner::WebTestInterfaces
> test_interfaces_
;
35 WebTestDelegateImpl test_delegate_
;
37 DISALLOW_COPY_AND_ASSIGN(LayoutTestHTMLViewer
);
40 } // namespace html_viewer
42 #endif // COMPONENTS_HTML_VIEWER_LAYOUT_TEST_HTML_VIEWER_H_