OLD | NEW |
1 // Copyright (c) 2012 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_SEARCH_THUMBNAIL_SOURCE_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_THUMBNAIL_SOURCE_H_ |
6 #define CHROME_BROWSER_SEARCH_THUMBNAIL_SOURCE_H_ | 6 #define CHROME_BROWSER_SEARCH_THUMBNAIL_SOURCE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
13 #include "content/public/browser/url_data_source.h" | 14 #include "content/public/browser/url_data_source.h" |
14 #include "url/gurl.h" | 15 #include "url/gurl.h" |
15 | 16 |
16 class Profile; | 17 class Profile; |
17 class SkBitmap; | 18 class SkBitmap; |
18 | 19 |
19 namespace base { | 20 namespace base { |
20 class RefCountedMemory; | 21 class RefCountedMemory; |
21 } | 22 } |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // existing thumbnails in the database that contain a URL matching the prefix | 82 // existing thumbnails in the database that contain a URL matching the prefix |
82 // of the requested URL. | 83 // of the requested URL. |
83 const bool capture_thumbnails_; | 84 const bool capture_thumbnails_; |
84 | 85 |
85 base::WeakPtrFactory<ThumbnailSource> weak_ptr_factory_; | 86 base::WeakPtrFactory<ThumbnailSource> weak_ptr_factory_; |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(ThumbnailSource); | 88 DISALLOW_COPY_AND_ASSIGN(ThumbnailSource); |
88 }; | 89 }; |
89 | 90 |
90 #endif // CHROME_BROWSER_SEARCH_THUMBNAIL_SOURCE_H_ | 91 #endif // CHROME_BROWSER_SEARCH_THUMBNAIL_SOURCE_H_ |
OLD | NEW |