| 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/icon_manager.h" | 5 #include "chrome/browser/icon_manager.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "chrome/common/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
| 10 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
| 11 #include "SkCanvas.h" | 11 #include "SkCanvas.h" |
| 12 | 12 |
| 13 IconManager::IconManager() { | 13 IconManager::IconManager() { |
| 14 } | 14 } |
| 15 | 15 |
| 16 IconManager::~IconManager() { | 16 IconManager::~IconManager() { |
| 17 STLDeleteValues(&icon_cache_); | 17 STLDeleteValues(&icon_cache_); |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 IconLoader::IconSize size) | 99 IconLoader::IconSize size) |
| 100 : file_name(file_name), | 100 : file_name(file_name), |
| 101 size(size) { | 101 size(size) { |
| 102 } | 102 } |
| 103 | 103 |
| 104 bool IconManager::CacheKey::operator<(const CacheKey &other) const { | 104 bool IconManager::CacheKey::operator<(const CacheKey &other) const { |
| 105 if (file_name != other.file_name) | 105 if (file_name != other.file_name) |
| 106 return file_name < other.file_name; | 106 return file_name < other.file_name; |
| 107 return size < other.size; | 107 return size < other.size; |
| 108 } | 108 } |
| OLD | NEW |