| OLD | NEW |
| 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_CORE_READING_LIST_MODEL_IMPL_H_ |
| 6 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ | 6 #define COMPONENTS_READING_LIST_CORE_READING_LIST_MODEL_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "components/keyed_service/core/keyed_service.h" | 11 #include "components/keyed_service/core/keyed_service.h" |
| 12 #include "components/reading_list/ios/reading_list_entry.h" | 12 #include "components/reading_list/core/reading_list_entry.h" |
| 13 #include "components/reading_list/ios/reading_list_model.h" | 13 #include "components/reading_list/core/reading_list_model.h" |
| 14 #include "components/reading_list/ios/reading_list_model_storage.h" | 14 #include "components/reading_list/core/reading_list_model_storage.h" |
| 15 #include "components/reading_list/ios/reading_list_store_delegate.h" | 15 #include "components/reading_list/core/reading_list_store_delegate.h" |
| 16 | 16 |
| 17 namespace base { | 17 namespace base { |
| 18 class Clock; | 18 class Clock; |
| 19 } | 19 } |
| 20 | 20 |
| 21 class PrefService; | 21 class PrefService; |
| 22 | 22 |
| 23 // Concrete implementation of a reading list model using in memory lists. | 23 // Concrete implementation of a reading list model using in memory lists. |
| 24 class ReadingListModelImpl : public ReadingListModel, | 24 class ReadingListModelImpl : public ReadingListModel, |
| 25 public ReadingListStoreDelegate, | 25 public ReadingListStoreDelegate, |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 std::unique_ptr<ReadingListModelStorage> storage_layer_; | 143 std::unique_ptr<ReadingListModelStorage> storage_layer_; |
| 144 PrefService* pref_service_; | 144 PrefService* pref_service_; |
| 145 bool has_unseen_; | 145 bool has_unseen_; |
| 146 bool loaded_; | 146 bool loaded_; |
| 147 | 147 |
| 148 base::WeakPtrFactory<ReadingListModelImpl> weak_ptr_factory_; | 148 base::WeakPtrFactory<ReadingListModelImpl> weak_ptr_factory_; |
| 149 | 149 |
| 150 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl); | 150 DISALLOW_COPY_AND_ASSIGN(ReadingListModelImpl); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_IMPL_H_ | 153 #endif // COMPONENTS_READING_LIST_CORE_READING_LIST_MODEL_IMPL_H_ |
| OLD | NEW |