Chromium Code Reviews| Index: components/offline_pages/offline_page_model.h |
| diff --git a/components/offline_pages/offline_page_model.h b/components/offline_pages/offline_page_model.h |
| index 4222b53917dd5cfd5aa95916c6aea2a670b35d64..9f4b078a888ca6a5b3345c2b0e7732469a4b2857 100644 |
| --- a/components/offline_pages/offline_page_model.h |
| +++ b/components/offline_pages/offline_page_model.h |
| @@ -51,18 +51,19 @@ class OfflinePageModel : public base::SupportsUserData { |
| class Observer { |
|
fgorski
2016/11/02 15:51:06
https://bugs.chromium.org/p/chromium/issues/detail
dewittj
2016/11/02 16:34:37
Done.
|
| public: |
| // Invoked when the model has finished loading. |
| - virtual void OfflinePageModelLoaded(OfflinePageModel* model) = 0; |
| + virtual void OfflinePageModelLoaded(OfflinePageModel* model); |
|
Dmitry Titov
2016/11/02 07:15:37
What prompted you to make this a non-abstract inte
dewittj
2016/11/02 16:34:37
Most observers don't implement all the methods, it
|
| - // Invoked when the model is being updated, due to adding, removing or |
| - // updating an offline page. |
| - virtual void OfflinePageModelChanged(OfflinePageModel* model) = 0; |
| + // Invoked when the model is being updated due to adding an offline page. |
| + virtual void OfflinePageAdded(OfflinePageModel* model, |
|
fgorski
2016/11/02 15:51:06
This hits me as problematic. I would expect anothe
dewittj
2016/11/02 16:34:37
This patch is not trying to change any behavior of
|
| + SavePageResult result, |
|
fgorski
2016/11/02 15:51:06
Is this necessary?
I think you should not be info
dewittj
2016/11/02 16:34:37
Not necessary now, I agree that observers won't ca
|
| + const OfflinePageItem* added); |
|
Dmitry Titov
2016/11/02 07:15:37
added -> added_page?
Also. needs a comment on whe
dewittj
2016/11/02 16:34:37
Done.
|
| // Invoked when an offline copy related to |offline_id| was deleted. |
| virtual void OfflinePageDeleted(int64_t offline_id, |
| - const ClientId& client_id) = 0; |
| + const ClientId& client_id); |
| protected: |
| - virtual ~Observer() = default; |
| + virtual ~Observer(); |
| }; |
| using CheckPagesExistOfflineResult = |