OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef COMPONENTS_HTML_VIEWER_LAYOUT_TEST_CONTENT_HANDLER_IMPL_H_ |
| 6 #define COMPONENTS_HTML_VIEWER_LAYOUT_TEST_CONTENT_HANDLER_IMPL_H_ |
| 7 |
| 8 #include "components/html_viewer/content_handler_impl.h" |
| 9 |
| 10 #include "components/html_viewer/html_document.h" |
| 11 |
| 12 namespace test_runner { |
| 13 class WebTestInterfaces; |
| 14 } |
| 15 |
| 16 namespace html_viewer { |
| 17 |
| 18 class WebTestDelegateImpl; |
| 19 |
| 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; |
| 28 |
| 29 private: |
| 30 // Overridden from ContentHandler: |
| 31 void StartApplication(mojo::InterfaceRequest<mojo::Application> request, |
| 32 mojo::URLResponsePtr response) override; |
| 33 |
| 34 HTMLDocument* CreateHTMLDocument(HTMLDocument::CreateParams* params); |
| 35 |
| 36 test_runner::WebTestInterfaces* test_interfaces_; |
| 37 WebTestDelegateImpl* test_delegate_; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(LayoutTestContentHandlerImpl); |
| 40 }; |
| 41 |
| 42 } // namespace html_viewer |
| 43 |
| 44 #endif // COMPONENTS_HTML_VIEWER_LAYOUT_TEST_CONTENT_HANDLER_IMPL_H_ |
OLD | NEW |