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_DOM_DISTILLER_IOS_DISTILLER_PAGE_FACTORY_IOS_H_
6 #define COMPONENTS_DOM_DISTILLER_IOS_DISTILLER_PAGE_FACTORY_IOS_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "components/dom_distiller/core/distiller_page.h"
15 namespace dom_distiller
{
17 class DistillerPageIOS
;
19 // DistillerPageFactoryIOS is an iOS-specific implementation of the
20 // DistillerPageFactory interface allowing the creation of DistillerPage
22 class DistillerPageFactoryIOS
: public DistillerPageFactory
{
24 DistillerPageFactoryIOS(web::BrowserState
* browser_state
);
26 // Implementation of DistillerPageFactory:
27 scoped_ptr
<DistillerPage
> CreateDistillerPage(
28 const gfx::Size
& view_size
) const override
;
29 scoped_ptr
<DistillerPage
> CreateDistillerPageWithHandle(
30 scoped_ptr
<SourcePageHandle
> handle
) const override
;
33 web::BrowserState
* browser_state_
;
36 } // namespace dom_distiller
38 #endif // COMPONENTS_DOM_DISTILLER_IOS_DISTILLER_PAGE_FACTORY_IOS_H_