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

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

Issue 2707043002: [Reading List iOS] Store distillation date and size. (Closed)
Patch Set: done Created 3 years, 10 months 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_IMPL_H_ 5 #ifndef COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_
6 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ 6 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 reading_list::EntrySource source) override; 64 reading_list::EntrySource source) override;
65 65
66 void SetReadStatus(const GURL& url, bool read) override; 66 void SetReadStatus(const GURL& url, bool read) override;
67 67
68 void SetEntryTitle(const GURL& url, const std::string& title) override; 68 void SetEntryTitle(const GURL& url, const std::string& title) override;
69 void SetEntryDistilledState( 69 void SetEntryDistilledState(
70 const GURL& url, 70 const GURL& url,
71 ReadingListEntry::DistillationState state) override; 71 ReadingListEntry::DistillationState state) override;
72 void SetEntryDistilledInfo(const GURL& url, 72 void SetEntryDistilledInfo(const GURL& url,
73 const base::FilePath& distilled_path, 73 const base::FilePath& distilled_path,
74 const GURL& distilled_url) override; 74 const GURL& distilled_url,
75 int64_t distillation_size,
76 int64_t distillation_date) override;
75 77
76 void SyncAddEntry(std::unique_ptr<ReadingListEntry> entry) override; 78 void SyncAddEntry(std::unique_ptr<ReadingListEntry> entry) override;
77 ReadingListEntry* SyncMergeEntry( 79 ReadingListEntry* SyncMergeEntry(
78 std::unique_ptr<ReadingListEntry> entry) override; 80 std::unique_ptr<ReadingListEntry> entry) override;
79 void SyncRemoveEntry(const GURL& url) override; 81 void SyncRemoveEntry(const GURL& url) override;
80 82
81 std::unique_ptr<ReadingListModel::ScopedReadingListBatchUpdate> 83 std::unique_ptr<ReadingListModel::ScopedReadingListBatchUpdate>
82 CreateBatchToken() override; 84 CreateBatchToken() override;
83 85
84 // Helper class that is used to scope batch updates. 86 // Helper class that is used to scope batch updates.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 133
132 std::unique_ptr<ReadingListModelStorage> storage_layer_; 134 std::unique_ptr<ReadingListModelStorage> storage_layer_;
133 PrefService* pref_service_; 135 PrefService* pref_service_;
134 bool has_unseen_; 136 bool has_unseen_;
135 bool loaded_; 137 bool loaded_;
136 base::WeakPtrFactory<ReadingListModelImpl> weak_ptr_factory_; 138 base::WeakPtrFactory<ReadingListModelImpl> weak_ptr_factory_;
137 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl); 139 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl);
138 }; 140 };
139 141
140 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ 142 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_
OLDNEW
« no previous file with comments | « components/reading_list/ios/reading_list_model.h ('k') | components/reading_list/ios/reading_list_model_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698