OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_ANDROID_THUMBNAIL_THUMBNAIL_CACHE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_THUMBNAIL_THUMBNAIL_CACHE_H_ |
6 #define CHROME_BROWSER_ANDROID_THUMBNAIL_THUMBNAIL_CACHE_H_ | 6 #define CHROME_BROWSER_ANDROID_THUMBNAIL_THUMBNAIL_CACHE_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <list> | 10 #include <list> |
9 #include <set> | 11 #include <set> |
10 #include <string> | 12 #include <string> |
11 | 13 |
12 #include "base/bind.h" | 14 #include "base/bind.h" |
13 #include "base/containers/hash_tables.h" | 15 #include "base/containers/hash_tables.h" |
14 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
| 17 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
16 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
17 #include "base/time/time.h" | 20 #include "base/time/time.h" |
18 #include "chrome/browser/android/thumbnail/scoped_ptr_expiring_cache.h" | 21 #include "chrome/browser/android/thumbnail/scoped_ptr_expiring_cache.h" |
19 #include "chrome/browser/android/thumbnail/thumbnail.h" | 22 #include "chrome/browser/android/thumbnail/thumbnail.h" |
20 #include "third_party/skia/include/core/SkBitmap.h" | 23 #include "third_party/skia/include/core/SkBitmap.h" |
21 #include "ui/android/resources/ui_resource_provider.h" | 24 #include "ui/android/resources/ui_resource_provider.h" |
22 #include "ui/gfx/geometry/point.h" | 25 #include "ui/gfx/geometry/point.h" |
23 #include "ui/gfx/geometry/size.h" | 26 #include "ui/gfx/geometry/size.h" |
24 #include "ui/gfx/geometry/size_f.h" | 27 #include "ui/gfx/geometry/size_f.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 TabIdList visible_ids_; | 164 TabIdList visible_ids_; |
162 | 165 |
163 ui::UIResourceProvider* ui_resource_provider_; | 166 ui::UIResourceProvider* ui_resource_provider_; |
164 | 167 |
165 base::WeakPtrFactory<ThumbnailCache> weak_factory_; | 168 base::WeakPtrFactory<ThumbnailCache> weak_factory_; |
166 | 169 |
167 DISALLOW_COPY_AND_ASSIGN(ThumbnailCache); | 170 DISALLOW_COPY_AND_ASSIGN(ThumbnailCache); |
168 }; | 171 }; |
169 | 172 |
170 #endif // CHROME_BROWSER_ANDROID_THUMBNAIL_THUMBNAIL_CACHE_H_ | 173 #endif // CHROME_BROWSER_ANDROID_THUMBNAIL_THUMBNAIL_CACHE_H_ |
OLD | NEW |