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_READING_LIST_MODEL_OBSERVER_H_ | 5 #ifndef COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_OBSERVER_H_ |
6 #define COMPONENTS_READING_LIST_READING_LIST_MODEL_OBSERVER_H_ | 6 #define COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_OBSERVER_H_ |
7 | 7 |
8 #import <set> | 8 #include <set> |
9 #import <vector> | 9 #include <vector> |
10 | 10 |
11 class ReadingListModel; | 11 class ReadingListModel; |
12 class ReadingListEntry; | 12 class ReadingListEntry; |
13 | 13 |
14 // Observer for the Reading List model. In the observer methods care should be | 14 // Observer for the Reading List model. In the observer methods care should be |
15 // taken to not modify the model. | 15 // taken to not modify the model. |
16 class ReadingListModelObserver { | 16 class ReadingListModelObserver { |
17 public: | 17 public: |
18 // Invoked when the model has finished loading. Until this method is called it | 18 // Invoked when the model has finished loading. Until this method is called it |
19 // is unsafe to use the model. | 19 // is unsafe to use the model. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // are applied and then this method is called. | 69 // are applied and then this method is called. |
70 virtual void ReadingListDidApplyChanges(ReadingListModel* model) {} | 70 virtual void ReadingListDidApplyChanges(ReadingListModel* model) {} |
71 | 71 |
72 protected: | 72 protected: |
73 ReadingListModelObserver() {} | 73 ReadingListModelObserver() {} |
74 virtual ~ReadingListModelObserver() {} | 74 virtual ~ReadingListModelObserver() {} |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(ReadingListModelObserver); | 76 DISALLOW_COPY_AND_ASSIGN(ReadingListModelObserver); |
77 }; | 77 }; |
78 | 78 |
79 #endif // COMPONENTS_READING_LIST_READING_LIST_MODEL_OBSERVER_H_ | 79 #endif // COMPONENTS_READING_LIST_IOS_READING_LIST_MODEL_OBSERVER_H_ |
OLD | NEW |