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_HTML_FACTORY_H_
6 #define COMPONENTS_HTML_VIEWER_HTML_FACTORY_H_
8 #include "components/html_viewer/html_frame.h"
9 #include "components/html_viewer/html_widget.h"
11 namespace html_viewer
{
13 // HTMLFactory is used to create various classes that need to be mocked
17 virtual HTMLFrame
* CreateHTMLFrame(HTMLFrame::CreateParams
* params
) = 0;
18 virtual HTMLWidgetRootLocal
* CreateHTMLWidgetRootLocal(
19 HTMLWidgetRootLocal::CreateParams
* params
) = 0;
22 virtual ~HTMLFactory() {}
25 } // namespace html_viewer
27 #endif // COMPONENTS_HTML_VIEWER_HTML_FACTORY_H_