Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: chrome/browser/android/thumbnail/thumbnail_cache.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/android/tab_android.h ('k') | chrome/browser/android/vr_shell/vr_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698