Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: components/html_viewer/layout_test_content_handler_impl.h

Issue 1218323002: Hook up test runner to new layout_test_html_viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/html_viewer/html_viewer.h ('k') | components/html_viewer/layout_test_content_handler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/layout_test_content_handler_impl.h
diff --git a/components/html_viewer/layout_test_content_handler_impl.h b/components/html_viewer/layout_test_content_handler_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..139472ecab7e0c61e69d71dd0a9dadbbfd78316a
--- /dev/null
+++ b/components/html_viewer/layout_test_content_handler_impl.h
@@ -0,0 +1,44 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_HTML_VIEWER_LAYOUT_TEST_CONTENT_HANDLER_IMPL_H_
+#define COMPONENTS_HTML_VIEWER_LAYOUT_TEST_CONTENT_HANDLER_IMPL_H_
+
+#include "components/html_viewer/content_handler_impl.h"
+
+#include "components/html_viewer/html_document.h"
+
+namespace test_runner {
+class WebTestInterfaces;
+}
+
+namespace html_viewer {
+
+class WebTestDelegateImpl;
+
+class LayoutTestContentHandlerImpl : public ContentHandlerImpl {
+ public:
+ LayoutTestContentHandlerImpl(GlobalState* global_state,
+ mojo::ApplicationImpl* app,
+ mojo::InterfaceRequest<ContentHandler> request,
+ test_runner::WebTestInterfaces* test_interfaces,
+ WebTestDelegateImpl* test_delegate);
+ ~LayoutTestContentHandlerImpl() override;
+
+ private:
+ // Overridden from ContentHandler:
+ void StartApplication(mojo::InterfaceRequest<mojo::Application> request,
+ mojo::URLResponsePtr response) override;
+
+ HTMLDocument* CreateHTMLDocument(HTMLDocument::CreateParams* params);
+
+ test_runner::WebTestInterfaces* test_interfaces_;
+ WebTestDelegateImpl* test_delegate_;
+
+ DISALLOW_COPY_AND_ASSIGN(LayoutTestContentHandlerImpl);
+};
+
+} // namespace html_viewer
+
+#endif // COMPONENTS_HTML_VIEWER_LAYOUT_TEST_CONTENT_HANDLER_IMPL_H_
« no previous file with comments | « components/html_viewer/html_viewer.h ('k') | components/html_viewer/layout_test_content_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698