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" |
11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/cancelable_request.h" | 14 #include "chrome/browser/cancelable_request.h" |
15 #include "chrome/browser/favicon_service.h" | 15 #include "chrome/browser/favicon_service.h" |
16 #include "chrome/browser/prefs/pref_service.h" | 16 #include "chrome/browser/prefs/pref_service.h" |
17 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
19 #include "gfx/codec/png_codec.h" | 19 #include "gfx/codec/png_codec.h" |
20 #include "grit/app_resources.h" | 20 #include "grit/app_resources.h" |
21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
22 #include "third_party/skia/include/core/SkBitmap.h" | 22 #include "third_party/skia/include/core/SkBitmap.h" |
23 | 23 |
24 using base::Time; | 24 using base::Time; |
25 using base::TimeDelta; | 25 using base::TimeDelta; |
26 | 26 |
27 namespace { | 27 namespace { |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // Notify the observer. | 201 // Notify the observer. |
202 if (!fav_icon_map_[index].isNull() && observer_) | 202 if (!fav_icon_map_[index].isNull() && observer_) |
203 observer_->OnItemsChanged(static_cast<int>(index), 1); | 203 observer_->OnItemsChanged(static_cast<int>(index), 1); |
204 } | 204 } |
205 } | 205 } |
206 } | 206 } |
207 | 207 |
208 void PossibleURLModel::SetObserver(TableModelObserver* observer) { | 208 void PossibleURLModel::SetObserver(TableModelObserver* observer) { |
209 observer_ = observer; | 209 observer_ = observer; |
210 } | 210 } |
OLD | NEW |