Chromium Code Reviews| Index: ios/chrome/browser/reading_list/reading_list_distiller_page_factory.h |
| diff --git a/ios/chrome/browser/reading_list/reading_list_distiller_page_factory.h b/ios/chrome/browser/reading_list/reading_list_distiller_page_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..630d6a81306b99a19788fae0fd321c0914ffaf61 |
| --- /dev/null |
| +++ b/ios/chrome/browser/reading_list/reading_list_distiller_page_factory.h |
| @@ -0,0 +1,43 @@ |
| +// Copyright 2016 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 IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DISTILLER_PAGE_FACTORY_H_ |
| +#define IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DISTILLER_PAGE_FACTORY_H_ |
| + |
| +#include <memory> |
| + |
| +#include "components/dom_distiller/core/distiller_page.h" |
| + |
| +namespace web { |
| +class BrowserState; |
| +} |
| + |
| +namespace reading_list { |
| +class FaviconWebStateDispatcher; |
| + |
| +// DistillerPageFactoryIOS is an iOS-specific implementation of the |
| +// DistillerPageFactory interface allowing the creation of DistillerPage |
| +// instances. |
| +class ReadingListDistillerPageFactory |
|
gambard
2016/12/27 13:56:57
Update comment
Olivier
2016/12/27 14:52:15
Done.
|
| + : public dom_distiller::DistillerPageFactory { |
| + public: |
| + explicit ReadingListDistillerPageFactory(web::BrowserState* browser_state); |
| + ~ReadingListDistillerPageFactory() override; |
| + |
| + // Implementation of DistillerPageFactory: |
| + std::unique_ptr<dom_distiller::DistillerPage> CreateDistillerPage( |
| + const gfx::Size& view_size) const override; |
| + std::unique_ptr<dom_distiller::DistillerPage> CreateDistillerPageWithHandle( |
| + std::unique_ptr<dom_distiller::SourcePageHandle> handle) const override; |
| + |
| + private: |
| + web::BrowserState* browser_state_; |
| + std::unique_ptr<FaviconWebStateDispatcher> web_state_dispatcher_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ReadingListDistillerPageFactory); |
| +}; |
| + |
| +} // namespace reading_list |
| + |
| +#endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_DISTILLER_PAGE_FACTORY_H_ |