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

Side by Side Diff: chrome/browser/tab_contents/thumbnail_generator.h

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // Bitmasks of options for generating a thumbnail. 47 // Bitmasks of options for generating a thumbnail.
48 enum ThumbnailOptions { 48 enum ThumbnailOptions {
49 // No options. 49 // No options.
50 kNoOptions = 0, 50 kNoOptions = 0,
51 // Request a clipped thumbnail with the aspect ratio preserved. 51 // Request a clipped thumbnail with the aspect ratio preserved.
52 kClippedThumbnail = 1 << 0, 52 kClippedThumbnail = 1 << 0,
53 }; 53 };
54 54
55 // This class will do nothing until you call StartThumbnailing. 55 // This class will do nothing until you call StartThumbnailing.
56 ThumbnailGenerator(); 56 ThumbnailGenerator();
57 ~ThumbnailGenerator(); 57 virtual ~ThumbnailGenerator();
58 58
59 // Starts taking thumbnails of the given tab contents. 59 // Starts taking thumbnails of the given tab contents.
60 void StartThumbnailing(TabContents* tab_contents); 60 void StartThumbnailing(TabContents* tab_contents);
61 61
62 // This registers a callback that can receive the resulting SkBitmap 62 // This registers a callback that can receive the resulting SkBitmap
63 // from the renderer when it is done rendering it. This differs 63 // from the renderer when it is done rendering it. This differs
64 // from GetThumbnailForRenderer in that it may be asynchronous, and 64 // from GetThumbnailForRenderer in that it may be asynchronous, and
65 // because it will also fetch the bitmap even if the tab is hidden. 65 // because it will also fetch the bitmap even if the tab is hidden.
66 // In addition, if the renderer has to be invoked, the scaling of 66 // In addition, if the renderer has to be invoked, the scaling of
67 // the thumbnail happens on the rendering thread. 67 // the thumbnail happens on the rendering thread.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 typedef std::map<int, 146 typedef std::map<int,
147 linked_ptr<AsyncRequestInfo> > ThumbnailCallbackMap; 147 linked_ptr<AsyncRequestInfo> > ThumbnailCallbackMap;
148 ThumbnailCallbackMap callback_map_; 148 ThumbnailCallbackMap callback_map_;
149 149
150 TabContents* tab_contents_; 150 TabContents* tab_contents_;
151 151
152 DISALLOW_COPY_AND_ASSIGN(ThumbnailGenerator); 152 DISALLOW_COPY_AND_ASSIGN(ThumbnailGenerator);
153 }; 153 };
154 154
155 #endif // CHROME_BROWSER_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_ 155 #endif // CHROME_BROWSER_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu_gtk.h ('k') | chrome/browser/tabs/tab_finder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698