OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/base_history_model.h" | 5 #include "chrome/browser/base_history_model.h" |
6 | 6 |
7 #include "base/gfx/jpeg_codec.h" | 7 #include "base/gfx/jpeg_codec.h" |
8 #include "base/gfx/png_decoder.h" | 8 #include "base/gfx/png_decoder.h" |
9 #include "chrome/app/theme/theme_resources.h" | 9 #include "grit/theme_resources.h" |
10 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
11 #include "chrome/common/resource_bundle.h" | 11 #include "chrome/common/resource_bundle.h" |
12 #include "SkBitmap.h" | 12 #include "SkBitmap.h" |
13 | 13 |
14 // Size of the favicon and thumbnail caches. | 14 // Size of the favicon and thumbnail caches. |
15 static const int kThumbnailCacheSize = 100; | 15 static const int kThumbnailCacheSize = 100; |
16 | 16 |
17 // Icon to display when one isn't found for the page. | 17 // Icon to display when one isn't found for the page. |
18 static SkBitmap* kDefaultFavicon = NULL; | 18 static SkBitmap* kDefaultFavicon = NULL; |
19 | 19 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 } | 149 } |
150 history::URLID page = | 150 history::URLID page = |
151 cancelable_consumer_.GetClientData( | 151 cancelable_consumer_.GetClientData( |
152 profile_->GetHistoryService(Profile::EXPLICIT_ACCESS), handle); | 152 profile_->GetHistoryService(Profile::EXPLICIT_ACCESS), handle); |
153 favicons_.Put(page, fav_icon); | 153 favicons_.Put(page, fav_icon); |
154 | 154 |
155 if (observer_) | 155 if (observer_) |
156 observer_->ModelChanged(false); | 156 observer_->ModelChanged(false); |
157 } | 157 } |
158 | 158 |
OLD | NEW |