Chromium Code Reviews| Index: components/reading_list/ios/reading_list_entry.h |
| diff --git a/components/reading_list/ios/reading_list_entry.h b/components/reading_list/ios/reading_list_entry.h |
| index caa505cb764922e0b991e21c8f22561b7f1f8704..b90ade4b4654e843aee8a399b758bcb4b9a6ed94 100644 |
| --- a/components/reading_list/ios/reading_list_entry.h |
| +++ b/components/reading_list/ios/reading_list_entry.h |
| @@ -61,6 +61,8 @@ class ReadingListEntry { |
| int FailedDownloadCounter() const; |
| // The read status of the entry. |
| bool IsRead() const; |
| + // Returns if ean entry has ever been seen. |
|
jif-google
2016/12/05 19:24:59
typo
Olivier
2016/12/06 09:59:29
Done.
|
| + bool HasBeenSeen() const; |
| // The last update time of the entry. This value may be used to sort the |
| // entries. The value is in microseconds since Jan 1st 1970. |
| @@ -109,13 +111,14 @@ class ReadingListEntry { |
| void SetDistilledPath(const base::FilePath& path); |
| // Sets the state to one of PROCESSING, WILL_RETRY or ERROR. |
| void SetDistilledState(DistillationState distilled_state); |
| - // Sets the read stat of the entry. Will set the UpdateTime of the entry. |
| + // Sets the read state of the entry. Will set the UpdateTime of the entry. |
| void SetRead(bool read); |
| private: |
| + enum State { UNSEEN, UNREAD, READ }; |
| ReadingListEntry(const GURL& url, |
| const std::string& title, |
| - bool read, |
| + State state, |
| int64_t creation_time, |
| int64_t update_time, |
| ReadingListEntry::DistillationState distilled_state, |
| @@ -124,7 +127,7 @@ class ReadingListEntry { |
| std::unique_ptr<net::BackoffEntry> backoff); |
| GURL url_; |
| std::string title_; |
| - bool read_; |
| + State state_; |
| base::FilePath distilled_path_; |
| DistillationState distilled_state_; |