Roll src/third_party/skia 10b371c:c71239b
[chromium-blink-merge.git] / components / html_viewer / layout_test_content_handler_impl.h
blob139472ecab7e0c61e69d71dd0a9dadbbfd78316a
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"
10 #include "components/html_viewer/html_document.h"
12 namespace test_runner {
13 class WebTestInterfaces;
16 namespace html_viewer {
18 class WebTestDelegateImpl;
20 class LayoutTestContentHandlerImpl : public ContentHandlerImpl {
21 public:
22 LayoutTestContentHandlerImpl(GlobalState* global_state,
23 mojo::ApplicationImpl* app,
24 mojo::InterfaceRequest<ContentHandler> request,
25 test_runner::WebTestInterfaces* test_interfaces,
26 WebTestDelegateImpl* test_delegate);
27 ~LayoutTestContentHandlerImpl() override;
29 private:
30 // Overridden from ContentHandler:
31 void StartApplication(mojo::InterfaceRequest<mojo::Application> request,
32 mojo::URLResponsePtr response) override;
34 HTMLDocument* CreateHTMLDocument(HTMLDocument::CreateParams* params);
36 test_runner::WebTestInterfaces* test_interfaces_;
37 WebTestDelegateImpl* test_delegate_;
39 DISALLOW_COPY_AND_ASSIGN(LayoutTestContentHandlerImpl);
42 } // namespace html_viewer
44 #endif // COMPONENTS_HTML_VIEWER_LAYOUT_TEST_CONTENT_HANDLER_IMPL_H_