| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_old.h" | |
| 15 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
| 16 #include "base/timer.h" | 15 #include "base/timer.h" |
| 17 #include "content/browser/renderer_host/backing_store.h" | 16 #include "content/browser/renderer_host/backing_store.h" |
| 18 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
| 19 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
| 20 #include "content/public/browser/web_contents_observer.h" | 19 #include "content/public/browser/web_contents_observer.h" |
| 21 | 20 |
| 22 class GURL; | 21 class GURL; |
| 23 class Profile; | 22 class Profile; |
| 24 class RenderWidgetHost; | 23 class RenderWidgetHost; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 typedef std::map<int, | 150 typedef std::map<int, |
| 152 linked_ptr<AsyncRequestInfo> > ThumbnailCallbackMap; | 151 linked_ptr<AsyncRequestInfo> > ThumbnailCallbackMap; |
| 153 ThumbnailCallbackMap callback_map_; | 152 ThumbnailCallbackMap callback_map_; |
| 154 | 153 |
| 155 bool load_interrupted_; | 154 bool load_interrupted_; |
| 156 | 155 |
| 157 DISALLOW_COPY_AND_ASSIGN(ThumbnailGenerator); | 156 DISALLOW_COPY_AND_ASSIGN(ThumbnailGenerator); |
| 158 }; | 157 }; |
| 159 | 158 |
| 160 #endif // CHROME_BROWSER_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_ | 159 #endif // CHROME_BROWSER_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_ |
| OLD | NEW |