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

Unified Diff: ios/chrome/browser/reading_list/reading_list_model_impl.h

Issue 2352973002: Method to call a method with an entry based on its url (Closed)
Patch Set: Add tests Created 4 years, 3 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: ios/chrome/browser/reading_list/reading_list_model_impl.h
diff --git a/ios/chrome/browser/reading_list/reading_list_model_impl.h b/ios/chrome/browser/reading_list/reading_list_model_impl.h
index 944b6a414c79f9d7c78d317967421649c22eb610..d185c5193618190144f0d2e3de6541d1e11aaa52 100644
--- a/ios/chrome/browser/reading_list/reading_list_model_impl.h
+++ b/ios/chrome/browser/reading_list/reading_list_model_impl.h
@@ -39,6 +39,10 @@ class ReadingListModelImpl : public ReadingListModel, public KeyedService {
const ReadingListEntry& GetUnreadEntryAtIndex(size_t index) const override;
const ReadingListEntry& GetReadEntryAtIndex(size_t index) const override;
+ bool CallbackEntryURL(
+ const GURL& url,
+ base::Callback<void(const ReadingListEntry&)> callback) const override;
+
void RemoveEntryByUrl(const GURL& url) override;
const ReadingListEntry& AddEntry(const GURL& url,
« no previous file with comments | « ios/chrome/browser/reading_list/reading_list_model.h ('k') | ios/chrome/browser/reading_list/reading_list_model_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698