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

Side by Side Diff: components/reading_list/ios/reading_list_model_observer.h

Issue 2565753002: Only distill unread items (Closed)
Patch Set: past tense in 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_OBSERVER_H_ 5 #ifndef COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_OBSERVER_H_
6 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_OBSERVER_H_ 6 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_OBSERVER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 27 matching lines...) Expand all
38 38
39 // Invoked when elements are about to be removed from the read or unread list. 39 // Invoked when elements are about to be removed from the read or unread list.
40 virtual void ReadingListWillRemoveEntry(const ReadingListModel* model, 40 virtual void ReadingListWillRemoveEntry(const ReadingListModel* model,
41 const GURL& url) {} 41 const GURL& url) {}
42 // Invoked when elements |MarkEntryUpdated| is called on an entry. This means 42 // Invoked when elements |MarkEntryUpdated| is called on an entry. This means
43 // that the order of the entry may change and read/unread list may change 43 // that the order of the entry may change and read/unread list may change
44 // too. 44 // too.
45 virtual void ReadingListWillMoveEntry(const ReadingListModel* model, 45 virtual void ReadingListWillMoveEntry(const ReadingListModel* model,
46 const GURL& url) {} 46 const GURL& url) {}
47 47
48 // Invoked when elements |MarkEntryUpdated| has been called on an entry. This
49 // means that the order of the entry may have changed and read/unread list may
50 // have changed too.
51 virtual void ReadingListDidMoveEntry(const ReadingListModel* model,
52 const GURL& url) {}
53
48 // Invoked when elements are added. 54 // Invoked when elements are added.
49 virtual void ReadingListWillAddEntry(const ReadingListModel* model, 55 virtual void ReadingListWillAddEntry(const ReadingListModel* model,
50 const ReadingListEntry& entry) {} 56 const ReadingListEntry& entry) {}
51 57
52 // Invoked when elements have been added. This method is called after the 58 // Invoked when elements have been added. This method is called after the
53 // the entry has been added to the model and the entry can now be retrieved 59 // the entry has been added to the model and the entry can now be retrieved
54 // from the model. 60 // from the model.
55 virtual void ReadingListDidAddEntry(const ReadingListModel* model, 61 virtual void ReadingListDidAddEntry(const ReadingListModel* model,
56 const GURL& url) {} 62 const GURL& url) {}
57 63
58 // Invoked when an entry is about to change. 64 // Invoked when an entry is about to change.
59 virtual void ReadingListWillUpdateEntry(const ReadingListModel* model, 65 virtual void ReadingListWillUpdateEntry(const ReadingListModel* model,
60 const GURL& url) {} 66 const GURL& url) {}
61 67
62 // Called after all the changes signaled by calls to the "Will" methods are 68 // Called after all the changes signaled by calls to the "Will" methods are
63 // done. All the "Will" methods are called as necessary, then the changes 69 // done. All the "Will" methods are called as necessary, then the changes
64 // are applied and then this method is called. 70 // are applied and then this method is called.
65 virtual void ReadingListDidApplyChanges(ReadingListModel* model) {} 71 virtual void ReadingListDidApplyChanges(ReadingListModel* model) {}
66 72
67 protected: 73 protected:
68 ReadingListModelObserver() {} 74 ReadingListModelObserver() {}
69 virtual ~ReadingListModelObserver() {} 75 virtual ~ReadingListModelObserver() {}
70 76
71 DISALLOW_COPY_AND_ASSIGN(ReadingListModelObserver); 77 DISALLOW_COPY_AND_ASSIGN(ReadingListModelObserver);
72 }; 78 };
73 79
74 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_OBSERVER_H_ 80 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698