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

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

Issue 2451843002: Add Store+Sync to 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
new file mode 100644
index 0000000000000000000000000000000000000000..65a532d8be41b71bcd9f37c7a13793445e42324d
--- /dev/null
+++ b/ios/chrome/browser/reading_list/reading_list_store_delegate.h
@@ -0,0 +1,24 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_READING_LIST_READING_LIST_STORE_DELEGATE_H_
+#define IOS_CHROME_BROWSER_READING_LIST_READING_LIST_STORE_DELEGATE_H_
+
+class ReadingListEntry;
+
+using ReadingListEntries = std::vector<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.
+ virtual void SyncAddEntry(std::unique_ptr<ReadingListEntry> entry,
+ bool read) = 0;
+ virtual void SyncRemoveEntry(const GURL& gurl) = 0;
+};
+
+#endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_STORE_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698