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_CONTENT_HANDLER_IMPL_H_
6 #define COMPONENTS_HTML_VIEWER_LAYOUT_TEST_CONTENT_HANDLER_IMPL_H_
8 #include "components/html_viewer/content_handler_impl.h"
9 #include "components/html_viewer/html_frame.h"
11 namespace test_runner
{
12 class WebTestInterfaces
;
15 namespace html_viewer
{
17 class WebTestDelegateImpl
;
19 class LayoutTestContentHandlerImpl
: public ContentHandlerImpl
{
21 LayoutTestContentHandlerImpl(GlobalState
* global_state
,
22 mojo::ApplicationImpl
* app
,
23 mojo::InterfaceRequest
<ContentHandler
> request
,
24 test_runner::WebTestInterfaces
* test_interfaces
,
25 WebTestDelegateImpl
* test_delegate
);
26 ~LayoutTestContentHandlerImpl() override
;
29 // Overridden from ContentHandler:
30 void StartApplication(mojo::InterfaceRequest
<mojo::Application
> request
,
31 mojo::URLResponsePtr response
) override
;
33 HTMLFrame
* CreateHTMLFrame(HTMLFrame::CreateParams
* params
);
35 test_runner::WebTestInterfaces
* test_interfaces_
;
36 WebTestDelegateImpl
* test_delegate_
;
38 DISALLOW_COPY_AND_ASSIGN(LayoutTestContentHandlerImpl
);
41 } // namespace html_viewer
43 #endif // COMPONENTS_HTML_VIEWER_LAYOUT_TEST_CONTENT_HANDLER_IMPL_H_