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_H_ | 5 #ifndef COMPONENTS_READING_LIST_CORE_READING_LIST_MODEL_H_ |
6 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_H_ | 6 #define COMPONENTS_READING_LIST_CORE_READING_LIST_MODEL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
14 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
15 #include "components/reading_list/ios/reading_list_entry.h" | 15 #include "components/reading_list/core/reading_list_entry.h" |
16 #include "components/reading_list/ios/reading_list_model_observer.h" | 16 #include "components/reading_list/core/reading_list_model_observer.h" |
17 | 17 |
18 class GURL; | 18 class GURL; |
19 class ReadingListModel; | 19 class ReadingListModel; |
20 class ScopedReadingListBatchUpdate; | 20 class ScopedReadingListBatchUpdate; |
21 | 21 |
22 namespace syncer { | 22 namespace syncer { |
23 class ModelTypeSyncBridge; | 23 class ModelTypeSyncBridge; |
24 } | 24 } |
25 | 25 |
26 // The reading list model contains two list of entries: one of unread urls, the | 26 // The reading list model contains two list of entries: one of unread urls, the |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 // Called when model is leaving batch update mode. | 166 // Called when model is leaving batch update mode. |
167 virtual void LeavingBatchUpdates(); | 167 virtual void LeavingBatchUpdates(); |
168 | 168 |
169 private: | 169 private: |
170 unsigned int current_batch_updates_count_; | 170 unsigned int current_batch_updates_count_; |
171 | 171 |
172 DISALLOW_COPY_AND_ASSIGN(ReadingListModel); | 172 DISALLOW_COPY_AND_ASSIGN(ReadingListModel); |
173 }; | 173 }; |
174 | 174 |
175 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_H_ | 175 #endif // COMPONENTS_READING_LIST_CORE_READING_LIST_MODEL_H_ |
OLD | NEW |