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 #import "components/reading_list/reading_list_model_bridge_observer.h" | 5 #import "components/reading_list/ios/reading_list_model_bridge_observer.h" |
6 | 6 |
7 #import "components/reading_list/reading_list_entry.h" | 7 #include "components/reading_list/ios/reading_list_entry.h" |
8 #import "components/reading_list/reading_list_model.h" | 8 #include "components/reading_list/ios/reading_list_model.h" |
9 | 9 |
10 ReadingListModelBridge::ReadingListModelBridge( | 10 ReadingListModelBridge::ReadingListModelBridge( |
11 id<ReadingListModelBridgeObserver> observer, | 11 id<ReadingListModelBridgeObserver> observer, |
12 ReadingListModel* model) | 12 ReadingListModel* model) |
13 : observer_(observer), model_(model) { | 13 : observer_(observer), model_(model) { |
14 DCHECK(model); | 14 DCHECK(model); |
15 model_->AddObserver(this); | 15 model_->AddObserver(this); |
16 } | 16 } |
17 | 17 |
18 ReadingListModelBridge::~ReadingListModelBridge() { | 18 ReadingListModelBridge::~ReadingListModelBridge() { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 } | 113 } |
114 | 114 |
115 void ReadingListModelBridge::ReadingListWillUpdateReadEntry( | 115 void ReadingListModelBridge::ReadingListWillUpdateReadEntry( |
116 const ReadingListModel* model, | 116 const ReadingListModel* model, |
117 size_t index) { | 117 size_t index) { |
118 if ([observer_ respondsToSelector:@selector(readingListModel: | 118 if ([observer_ respondsToSelector:@selector(readingListModel: |
119 willUpdateReadEntryAtIndex:)]) { | 119 willUpdateReadEntryAtIndex:)]) { |
120 [observer_ readingListModel:model willUpdateReadEntryAtIndex:index]; | 120 [observer_ readingListModel:model willUpdateReadEntryAtIndex:index]; |
121 } | 121 } |
122 } | 122 } |
OLD | NEW |