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

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

Issue 2764533002: Reading List iOS: Use external clock in ReadingListEntry. (Closed)
Patch Set: jitter Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: components/reading_list/ios/reading_list_model_storage.h
diff --git a/components/reading_list/ios/reading_list_model_storage.h b/components/reading_list/ios/reading_list_model_storage.h
index f0ac31a9a33aca09639ee9b95c704b23774ab297..40a5a540944c4b9f472e001fba1a20678db541b3 100644
--- a/components/reading_list/ios/reading_list_model_storage.h
+++ b/components/reading_list/ios/reading_list_model_storage.h
@@ -15,6 +15,10 @@
class ReadingListModel;
class ReadingListStoreDelegate;
+namespace base {
+class Clock;
+}
+
namespace syncer {
class ModelTypeSyncBridge;
}
@@ -32,8 +36,11 @@ class ReadingListModelStorage : public syncer::ModelTypeSyncBridge {
// Sets the model the Storage is backing.
// This will trigger store initalization and load persistent entries.
+ // Pass the |clock| from the |model| to ensure synchroization when loading
+ // entries.
virtual void SetReadingListModel(ReadingListModel* model,
- ReadingListStoreDelegate* delegate) = 0;
+ ReadingListStoreDelegate* delegate,
+ base::Clock* clock) = 0;
// Starts a transaction. All Save/Remove entry will be delayed until the
// transaction is commited.
« no previous file with comments | « components/reading_list/ios/reading_list_model_impl.cc ('k') | components/reading_list/ios/reading_list_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698