Chromium Code Reviews| Index: components/dom_distiller/core/dom_distiller_service.h |
| diff --git a/components/dom_distiller/core/dom_distiller_service.h b/components/dom_distiller/core/dom_distiller_service.h |
| index cd59950bd7fafea972c5c033b91eeec9bec68f2d..c95156fe4876788d2c5bac1c168eb80454e9b6e1 100644 |
| --- a/components/dom_distiller/core/dom_distiller_service.h |
| +++ b/components/dom_distiller/core/dom_distiller_service.h |
| @@ -14,6 +14,7 @@ |
| #include "base/memory/weak_ptr.h" |
| #include "components/dom_distiller/core/article_entry.h" |
| #include "components/dom_distiller/core/distiller_page.h" |
| +#include "components/dom_distiller/core/reader_mode_preferences.h" |
| class GURL; |
| @@ -90,7 +91,9 @@ class DomDistillerServiceInterface { |
| virtual void AddObserver(DomDistillerObserver* observer) = 0; |
| virtual void RemoveObserver(DomDistillerObserver* observer) = 0; |
| - protected: |
| + virtual ReaderModePrefs* GetReaderModePrefs() const; |
| + |
| +protected: |
| DomDistillerServiceInterface() {} |
| private: |
| @@ -102,7 +105,8 @@ class DomDistillerService : public DomDistillerServiceInterface { |
| public: |
| DomDistillerService(scoped_ptr<DomDistillerStoreInterface> store, |
| scoped_ptr<DistillerFactory> distiller_factory, |
| - scoped_ptr<DistillerPageFactory> distiller_page_factory); |
| + scoped_ptr<DistillerPageFactory> distiller_page_factory, |
| + scoped_ptr<ReaderModePrefs> reader_mode_prefs); |
|
nyquist
2014/06/23 16:03:06
Does this require you to update the tests?
smaslo
2014/06/23 22:14:33
Done.
|
| virtual ~DomDistillerService(); |
| // DomDistillerServiceInterface implementation. |
| @@ -127,6 +131,7 @@ class DomDistillerService : public DomDistillerServiceInterface { |
| scoped_ptr<SourcePageHandle> handle) OVERRIDE; |
| virtual void AddObserver(DomDistillerObserver* observer) OVERRIDE; |
| virtual void RemoveObserver(DomDistillerObserver* observer) OVERRIDE; |
| + virtual ReaderModePrefs* GetReaderModePrefs() const OVERRIDE; |
| private: |
| void CancelTask(TaskTracker* task); |
| @@ -148,6 +153,7 @@ class DomDistillerService : public DomDistillerServiceInterface { |
| scoped_ptr<DistilledContentStore> content_store_; |
| scoped_ptr<DistillerFactory> distiller_factory_; |
| scoped_ptr<DistillerPageFactory> distiller_page_factory_; |
| + scoped_ptr<ReaderModePrefs> reader_mode_prefs_; |
| typedef ScopedVector<TaskTracker> TaskList; |
| TaskList tasks_; |