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

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

Issue 2514333003: Componentize Reading List (Closed)
Patch Set: rebase Created 4 years, 1 month 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_store_delegate.h
diff --git a/ios/chrome/browser/reading_list/reading_list_store_delegate.h b/ios/chrome/browser/reading_list/reading_list_store_delegate.h
index 99170341338f216eec0777676b2fecdc5b44031a..091e84d944e5ff39b29798a3df2784c0f6f6a540 100644
--- a/ios/chrome/browser/reading_list/reading_list_store_delegate.h
+++ b/ios/chrome/browser/reading_list/reading_list_store_delegate.h
@@ -5,30 +5,7 @@
#ifndef IOS_CHROME_BROWSER_READING_LIST_READING_LIST_STORE_DELEGATE_H_
#define IOS_CHROME_BROWSER_READING_LIST_READING_LIST_STORE_DELEGATE_H_
-class ReadingListEntry;
-
-// The delegate to handle callbacks from the ReadingListStore.
-class ReadingListStoreDelegate {
- public:
- // These three mathods handle callbacks from a ReadingListStore.
- virtual void StoreLoaded(std::unique_ptr<ReadingListEntries> unread,
- std::unique_ptr<ReadingListEntries> read) = 0;
- // Handle sync events.
- // Called to add a new entry to the model.
- // |entry| must not already exist in the model.
- virtual void SyncAddEntry(std::unique_ptr<ReadingListEntry> entry,
- bool read) = 0;
-
- // Called to merge a sync entry with a local entry in the model.
- // A local entry with the same URL must exist in the local store and have an
- // older UpdateTime.
- // Return a pointer to the merged entry.
- virtual ReadingListEntry* SyncMergeEntry(
- std::unique_ptr<ReadingListEntry> entry,
- bool read) = 0;
-
- // Called to remove an entry to the model.
- virtual void SyncRemoveEntry(const GURL& url) = 0;
-};
+// This is a temporary convenience file.
+#include "components/reading_list/reading_list_store_delegate.h"
#endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_STORE_DELEGATE_H_
« no previous file with comments | « ios/chrome/browser/reading_list/reading_list_store.cc ('k') | ios/chrome/browser/reading_list/reading_list_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698