| 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_
|
|
|