Vectorize website settings icons in omnibox
[chromium-blink-merge.git] / components / html_viewer / layout_test_content_handler_impl.h
blob0113783fed8bc74cc4751ed8c558a090ee536fc2
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_factory.h"
10 #include "components/test_runner/web_test_proxy.h"
12 namespace blink {
13 class WebView;
16 namespace test_runner {
17 class WebTestInterfaces;
20 namespace html_viewer {
22 class WebTestDelegateImpl;
24 class LayoutTestContentHandlerImpl : public ContentHandlerImpl,
25 public HTMLFactory {
26 public:
27 LayoutTestContentHandlerImpl(GlobalState* global_state,
28 mojo::ApplicationImpl* app,
29 mojo::InterfaceRequest<ContentHandler> request,
30 test_runner::WebTestInterfaces* test_interfaces,
31 WebTestDelegateImpl* test_delegate);
32 ~LayoutTestContentHandlerImpl() override;
34 private:
35 using WebWidgetProxy =
36 test_runner::WebTestProxy<HTMLWidgetRootLocal,
37 HTMLWidgetRootLocal::CreateParams*>;
39 // ContentHandler:
40 void StartApplication(mojo::InterfaceRequest<mojo::Application> request,
41 mojo::URLResponsePtr response) override;
43 // HTMLFactory
44 HTMLFrame* CreateHTMLFrame(HTMLFrame::CreateParams* params) override;
45 HTMLWidgetRootLocal* CreateHTMLWidgetRootLocal(
46 HTMLWidgetRootLocal::CreateParams* params) override;
48 test_runner::WebTestInterfaces* test_interfaces_;
49 WebTestDelegateImpl* test_delegate_;
50 WebWidgetProxy* web_widget_proxy_;
52 DISALLOW_COPY_AND_ASSIGN(LayoutTestContentHandlerImpl);
55 } // namespace html_viewer
57 #endif // COMPONENTS_HTML_VIEWER_LAYOUT_TEST_CONTENT_HANDLER_IMPL_H_