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

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: Rebase 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..08a0a4a1f24024d06e26c8affb5e54a526f10a5c 100644
--- a/components/ntp_snippets/reading_list/reading_list_suggestions_provider.h
+++ b/components/ntp_snippets/reading_list/reading_list_suggestions_provider.h
@@ -51,8 +51,12 @@ class ReadingListSuggestionsProvider : public ContentSuggestionsProvider,
void ReadingListModelLoaded(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