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

Unified Diff: components/dom_distiller/ios/distiller_page_factory_ios.h

Issue 2529283002: Save favicon during reading list distillation (Closed)
Patch Set: Use WebState pool 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 side-by-side diff with in-line comments
Download patch
Index: components/dom_distiller/ios/distiller_page_factory_ios.h
diff --git a/components/dom_distiller/ios/distiller_page_factory_ios.h b/components/dom_distiller/ios/distiller_page_factory_ios.h
index f3fb0e88bb04fd8eded06a273303f3d1c4efa54b..a5969e2d049f5afd2818b66cb820f600e537d112 100644
--- a/components/dom_distiller/ios/distiller_page_factory_ios.h
+++ b/components/dom_distiller/ios/distiller_page_factory_ios.h
@@ -9,18 +9,17 @@
#include "components/dom_distiller/core/distiller_page.h"
-namespace web {
-class BrowserState;
-}
-
namespace dom_distiller {
+class WebStatePool;
+
// DistillerPageFactoryIOS is an iOS-specific implementation of the
// DistillerPageFactory interface allowing the creation of DistillerPage
// instances.
class DistillerPageFactoryIOS : public DistillerPageFactory {
public:
- DistillerPageFactoryIOS(web::BrowserState* browser_state);
+ DistillerPageFactoryIOS(std::unique_ptr<WebStatePool> web_state_pool);
+ ~DistillerPageFactoryIOS() override;
// Implementation of DistillerPageFactory:
std::unique_ptr<DistillerPage> CreateDistillerPage(
@@ -29,7 +28,7 @@ class DistillerPageFactoryIOS : public DistillerPageFactory {
std::unique_ptr<SourcePageHandle> handle) const override;
private:
- web::BrowserState* browser_state_;
+ std::unique_ptr<WebStatePool> web_state_pool_;
};
} // namespace dom_distiller

Powered by Google App Engine
This is Rietveld 408576698