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

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

Issue 262543002: android: add ThumbnailCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@codec
Patch Set: separate into multiple files Created 6 years, 6 months 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_ANDROID_THUMBNAIL_THUMBNAIL_H_
6 #define CHROME_BROWSER_ANDROID_THUMBNAIL_THUMBNAIL_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "cc/resources/ui_resource_client.h"
10
11 namespace gfx {
12 class Size;
13 class SizeF;
14 }
15
16 typedef int TabId;
17
18 class Thumbnail : public base::RefCountedThreadSafe<Thumbnail> {
19 public:
20 // Returns the size of the content represented by this thumbnail. Content
21 // may be smaller than the data size because ETC1 pads the border of the
22 // images.
23 virtual gfx::Size GetScaledContentSize() const = 0;
24 // Returns data size of the thumbnail after scaling..
25 virtual gfx::SizeF GetScaledDataSize() const = 0;
26 virtual cc::UIResourceId ui_resource_id() const = 0;
27 virtual TabId tab_id() const = 0;
28
29 protected:
30 virtual ~Thumbnail() {}
31
32 friend class base::RefCountedThreadSafe<Thumbnail>;
33 };
34
35 #endif // CHROME_BROWSER_ANDROID_THUMBNAIL_THUMBNAIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698