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_OBSERVER_H_ | 5 #ifndef COMPONENTS_READING_LIST_CORE_READING_LIST_MODEL_OBSERVER_H_ |
6 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_OBSERVER_H_ | 6 #define COMPONENTS_READING_LIST_CORE_READING_LIST_MODEL_OBSERVER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "components/reading_list/ios/reading_list_entry.h" | 11 #include "components/reading_list/core/reading_list_entry.h" |
12 | 12 |
13 class GURL; | 13 class GURL; |
14 class ReadingListModel; | 14 class ReadingListModel; |
15 | 15 |
16 // Observer for the Reading List model. In the observer methods care should be | 16 // Observer for the Reading List model. In the observer methods care should be |
17 // taken to not modify the model. | 17 // taken to not modify the model. |
18 class ReadingListModelObserver { | 18 class ReadingListModelObserver { |
19 public: | 19 public: |
20 // Invoked when the model has finished loading. Until this method is called it | 20 // Invoked when the model has finished loading. Until this method is called it |
21 // is unsafe to use the model. | 21 // is unsafe to use the model. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // are applied and then this method is called. | 73 // are applied and then this method is called. |
74 virtual void ReadingListDidApplyChanges(ReadingListModel* model) {} | 74 virtual void ReadingListDidApplyChanges(ReadingListModel* model) {} |
75 | 75 |
76 protected: | 76 protected: |
77 ReadingListModelObserver() {} | 77 ReadingListModelObserver() {} |
78 virtual ~ReadingListModelObserver() {} | 78 virtual ~ReadingListModelObserver() {} |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(ReadingListModelObserver); | 80 DISALLOW_COPY_AND_ASSIGN(ReadingListModelObserver); |
81 }; | 81 }; |
82 | 82 |
83 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_OBSERVER_H_ | 83 #endif // COMPONENTS_READING_LIST_CORE_READING_LIST_MODEL_OBSERVER_H_ |
OLD | NEW |