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

Unified Diff: components/reading_list/ios/reading_list_store_delegate.h

Issue 2565213002: Add destructor to ReadingListStoreDelegate (Closed)
Patch Set: comments Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/reading_list/ios/reading_list_store_delegate.h
diff --git a/components/reading_list/ios/reading_list_store_delegate.h b/components/reading_list/ios/reading_list_store_delegate.h
index ff4b14b52d1f7778303dacc8355af4f299053fa0..a50e6d6b6782f1f76be2374423e6cfe94de353ba 100644
--- a/components/reading_list/ios/reading_list_store_delegate.h
+++ b/components/reading_list/ios/reading_list_store_delegate.h
@@ -7,13 +7,20 @@
#include <map>
+#include "base/macros.h"
+
class ReadingListEntry;
// The delegate to handle callbacks from the ReadingListStore.
class ReadingListStoreDelegate {
public:
+ ReadingListStoreDelegate() {}
+ virtual ~ReadingListStoreDelegate() {}
+
using ReadingListEntries = std::map<GURL, ReadingListEntry>;
- // These three mathods handle callbacks from a ReadingListStore.
+ // These three methods handle callbacks from a ReadingListStore.
+ // This method is called when the local store is loaded. |entries| contains
+ // the ReadingListEntry present on the device before sync starts.
virtual void StoreLoaded(std::unique_ptr<ReadingListEntries> entries) = 0;
// Handle sync events.
// Called to add a new entry to the model.
@@ -29,6 +36,8 @@ class ReadingListStoreDelegate {
// Called to remove an entry to the model.
virtual void SyncRemoveEntry(const GURL& url) = 0;
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ReadingListStoreDelegate);
};
#endif // COMPONENTS_READING_LIST_IOS_READING_LIST_STORE_DELEGATE_H_
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698