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> | 8 #include <stddef.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/android/thumbnail/thumbnail.h" | 23 #include "chrome/browser/android/thumbnail/thumbnail.h" |
24 #include "third_party/skia/include/core/SkBitmap.h" | 24 #include "third_party/skia/include/core/SkBitmap.h" |
25 #include "third_party/skia/include/core/SkRefCnt.h" | 25 #include "third_party/skia/include/core/SkRefCnt.h" |
26 #include "ui/android/resources/ui_resource_provider.h" | 26 #include "ui/android/resources/ui_resource_provider.h" |
27 #include "ui/gfx/geometry/point.h" | 27 #include "ui/gfx/geometry/point.h" |
28 #include "ui/gfx/geometry/size.h" | 28 #include "ui/gfx/geometry/size.h" |
29 #include "ui/gfx/geometry/size_f.h" | 29 #include "ui/gfx/geometry/size_f.h" |
30 #include "url/gurl.h" | 30 #include "url/gurl.h" |
31 | 31 |
32 namespace base { | 32 namespace base { |
33 class File; | |
34 class Time; | 33 class Time; |
35 } | 34 } |
36 | 35 |
37 namespace content { | |
38 class ContentViewCore; | |
39 } | |
40 | |
41 typedef std::list<TabId> TabIdList; | 36 typedef std::list<TabId> TabIdList; |
42 | 37 |
43 class ThumbnailCacheObserver { | 38 class ThumbnailCacheObserver { |
44 public: | 39 public: |
45 virtual void OnFinishedThumbnailRead(TabId tab_id) = 0; | 40 virtual void OnFinishedThumbnailRead(TabId tab_id) = 0; |
46 }; | 41 }; |
47 | 42 |
48 class ThumbnailCache : ThumbnailDelegate { | 43 class ThumbnailCache : ThumbnailDelegate { |
49 public: | 44 public: |
50 ThumbnailCache(size_t default_cache_size, | 45 ThumbnailCache(size_t default_cache_size, |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 163 |
169 ui::UIResourceProvider* ui_resource_provider_; | 164 ui::UIResourceProvider* ui_resource_provider_; |
170 | 165 |
171 std::unique_ptr<base::MemoryPressureListener> memory_pressure_; | 166 std::unique_ptr<base::MemoryPressureListener> memory_pressure_; |
172 base::WeakPtrFactory<ThumbnailCache> weak_factory_; | 167 base::WeakPtrFactory<ThumbnailCache> weak_factory_; |
173 | 168 |
174 DISALLOW_COPY_AND_ASSIGN(ThumbnailCache); | 169 DISALLOW_COPY_AND_ASSIGN(ThumbnailCache); |
175 }; | 170 }; |
176 | 171 |
177 #endif // CHROME_BROWSER_ANDROID_THUMBNAIL_THUMBNAIL_CACHE_H_ | 172 #endif // CHROME_BROWSER_ANDROID_THUMBNAIL_THUMBNAIL_CACHE_H_ |
OLD | NEW |