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

Side by Side Diff: components/dom_distiller/ios/distiller_page_factory_ios.h

Issue 2529283002: Save favicon during reading list distillation (Closed)
Patch Set: Using web state Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_DOM_DISTILLER_IOS_DISTILLER_PAGE_FACTORY_IOS_H_ 5 #ifndef COMPONENTS_DOM_DISTILLER_IOS_DISTILLER_PAGE_FACTORY_IOS_H_
6 #define COMPONENTS_DOM_DISTILLER_IOS_DISTILLER_PAGE_FACTORY_IOS_H_ 6 #define COMPONENTS_DOM_DISTILLER_IOS_DISTILLER_PAGE_FACTORY_IOS_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "components/dom_distiller/core/distiller_page.h" 10 #include "components/dom_distiller/core/distiller_page.h"
11 11
12 namespace web { 12 namespace web {
13 class BrowserState; 13 class BrowserState;
14 class WebState;
14 } 15 }
15 16
16 namespace dom_distiller { 17 namespace dom_distiller {
17 18
19 class FaviconObserverFactory;
20
18 // DistillerPageFactoryIOS is an iOS-specific implementation of the 21 // DistillerPageFactoryIOS is an iOS-specific implementation of the
19 // DistillerPageFactory interface allowing the creation of DistillerPage 22 // DistillerPageFactory interface allowing the creation of DistillerPage
20 // instances. 23 // instances.
21 class DistillerPageFactoryIOS : public DistillerPageFactory { 24 class DistillerPageFactoryIOS : public DistillerPageFactory {
22 public: 25 public:
23 DistillerPageFactoryIOS(web::BrowserState* browser_state); 26 DistillerPageFactoryIOS(web::BrowserState* browser_state,
27 FaviconObserverFactory* favicon_factory);
28 ~DistillerPageFactoryIOS() override;
24 29
25 // Implementation of DistillerPageFactory: 30 // Implementation of DistillerPageFactory:
26 std::unique_ptr<DistillerPage> CreateDistillerPage( 31 std::unique_ptr<DistillerPage> CreateDistillerPage(
27 const gfx::Size& view_size) const override; 32 const gfx::Size& view_size) const override;
28 std::unique_ptr<DistillerPage> CreateDistillerPageWithHandle( 33 std::unique_ptr<DistillerPage> CreateDistillerPageWithHandle(
29 std::unique_ptr<SourcePageHandle> handle) const override; 34 std::unique_ptr<SourcePageHandle> handle) const override;
30 35
31 private: 36 private:
32 web::BrowserState* browser_state_; 37 std::unique_ptr<web::WebState> web_state_;
33 }; 38 };
34 39
35 } // namespace dom_distiller 40 } // namespace dom_distiller
36 41
37 #endif // COMPONENTS_DOM_DISTILLER_IOS_DISTILLER_PAGE_FACTORY_IOS_H_ 42 #endif // COMPONENTS_DOM_DISTILLER_IOS_DISTILLER_PAGE_FACTORY_IOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698