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

Unified Diff: components/ntp_snippets/reading_list/reading_list_suggestions_provider.h

Issue 2770893003: Add logic for fetching the Reading List entries (Closed)
Patch Set: Address comments Created 3 years, 9 months 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/ntp_snippets/reading_list/reading_list_suggestions_provider.h
diff --git a/components/ntp_snippets/reading_list/reading_list_suggestions_provider.h b/components/ntp_snippets/reading_list/reading_list_suggestions_provider.h
index 107d0b9ecf1140a11f3956d03063dec7eb0311b0..fcb1c5e0f734d855410cfffba8e4ecdd368ae55f 100644
--- a/components/ntp_snippets/reading_list/reading_list_suggestions_provider.h
+++ b/components/ntp_snippets/reading_list/reading_list_suggestions_provider.h
@@ -49,10 +49,15 @@ class ReadingListSuggestionsProvider : public ContentSuggestionsProvider,
// ReadingListModelObserver implementation.
void ReadingListModelLoaded(const ReadingListModel* model) override;
+ void ReadingListModelBeingDeleted(const ReadingListModel* model) override;
private:
+ // The actual method to fetch Reading List entries. Must be called after the
+ // model is loaded.
void FetchReadingListInternal();
+ // Updates the |category_status_| and notifies the |observer_|, if necessary.
+ void NotifyStatusChanged(CategoryStatus new_status);
CategoryStatus category_status_;
const Category provided_category_;

Powered by Google App Engine
This is Rietveld 408576698