OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/linked_ptr.h" | 15 #include "base/linked_ptr.h" |
| 16 #include "base/lock.h" |
16 #include "base/timer.h" | 17 #include "base/timer.h" |
17 #include "chrome/browser/renderer_host/render_widget_host_painting_observer.h" | 18 #include "chrome/browser/renderer_host/render_widget_host_painting_observer.h" |
18 #include "chrome/common/notification_observer.h" | 19 #include "chrome/common/notification_observer.h" |
19 #include "chrome/common/notification_registrar.h" | 20 #include "chrome/common/notification_registrar.h" |
20 | 21 |
21 class RenderWidgetHost; | 22 class RenderWidgetHost; |
22 class SkBitmap; | 23 class SkBitmap; |
23 class TabContents; | 24 class TabContents; |
24 | 25 |
25 // This class MUST be destroyed after the RenderWidgetHosts, since it installs | 26 // This class MUST be destroyed after the RenderWidgetHosts, since it installs |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Map of callback objects by sequence number. | 121 // Map of callback objects by sequence number. |
121 struct AsyncRequestInfo; | 122 struct AsyncRequestInfo; |
122 typedef std::map<int, | 123 typedef std::map<int, |
123 linked_ptr<AsyncRequestInfo> > ThumbnailCallbackMap; | 124 linked_ptr<AsyncRequestInfo> > ThumbnailCallbackMap; |
124 ThumbnailCallbackMap callback_map_; | 125 ThumbnailCallbackMap callback_map_; |
125 | 126 |
126 DISALLOW_COPY_AND_ASSIGN(ThumbnailGenerator); | 127 DISALLOW_COPY_AND_ASSIGN(ThumbnailGenerator); |
127 }; | 128 }; |
128 | 129 |
129 #endif // CHROME_BROWSER_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_ | 130 #endif // CHROME_BROWSER_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_ |
OLD | NEW |