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

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

Issue 2568023002: Fix inheritance in Reading List (Closed)
Patch Set: clean includes 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 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 422abf04367c90b1f95949f37837e2595d8cff7d..f0ac31a9a33aca09639ee9b95c704b23774ab297 100644
--- a/components/reading_list/ios/reading_list_model_storage.h
+++ b/components/reading_list/ios/reading_list_model_storage.h
@@ -9,6 +9,8 @@
#include "base/macros.h"
#include "components/reading_list/ios/reading_list_entry.h"
+#include "components/sync/base/model_type.h"
+#include "components/sync/model/model_type_sync_bridge.h"
class ReadingListModel;
class ReadingListStoreDelegate;
@@ -19,21 +21,20 @@ class ModelTypeSyncBridge;
// Interface for a persistence layer for reading list.
// All interface methods have to be called on main thread.
-class ReadingListModelStorage {
+class ReadingListModelStorage : public syncer::ModelTypeSyncBridge {
public:
class ScopedBatchUpdate;
- ReadingListModelStorage() {}
- virtual ~ReadingListModelStorage() {}
+ ReadingListModelStorage(
+ const ChangeProcessorFactory& change_processor_factory,
+ syncer::ModelType type);
+ ~ReadingListModelStorage() override;
// Sets the model the Storage is backing.
// This will trigger store initalization and load persistent entries.
virtual void SetReadingListModel(ReadingListModel* model,
ReadingListStoreDelegate* delegate) = 0;
- // Returns the class responsible for handling sync messages.
- virtual syncer::ModelTypeSyncBridge* GetModelTypeSyncBridge() = 0;
-
// Starts a transaction. All Save/Remove entry will be delayed until the
// transaction is commited.
// Multiple transaction can be started at the same time. Commit will happen
« no previous file with comments | « components/reading_list/ios/reading_list_model_impl.cc ('k') | components/reading_list/ios/reading_list_model_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698