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