| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/possible_url_model.h" | 5 #include "chrome/browser/possible_url_model.h" |
| 6 | 6 |
| 7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
| 8 #include "app/table_model_observer.h" | 8 #include "app/table_model_observer.h" |
| 9 #include "app/text_elider.h" | 9 #include "app/text_elider.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // The decoder will leave our bitmap empty on error. | 199 // The decoder will leave our bitmap empty on error. |
| 200 gfx::PNGCodec::Decode(data->front(), data->size(), | 200 gfx::PNGCodec::Decode(data->front(), data->size(), |
| 201 &(fav_icon_map_[index])); | 201 &(fav_icon_map_[index])); |
| 202 | 202 |
| 203 // Notify the observer. | 203 // Notify the observer. |
| 204 if (!fav_icon_map_[index].isNull() && observer_) | 204 if (!fav_icon_map_[index].isNull() && observer_) |
| 205 observer_->OnItemsChanged(static_cast<int>(index), 1); | 205 observer_->OnItemsChanged(static_cast<int>(index), 1); |
| 206 } | 206 } |
| 207 } | 207 } |
| 208 } | 208 } |
| 209 |
| 210 void PossibleURLModel::SetObserver(TableModelObserver* observer) { |
| 211 observer_ = observer; |
| 212 } |
| OLD | NEW |