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/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/single_thread_task_runner.h" |
13 #include "components/image_fetcher/core/image_data_fetcher.h" | 14 #include "components/image_fetcher/core/image_data_fetcher.h" |
14 #include "content/public/browser/url_data_source.h" | 15 #include "content/public/browser/url_data_source.h" |
15 | 16 |
16 class GURL; | 17 class GURL; |
17 class Profile; | 18 class Profile; |
18 | 19 |
19 namespace image_fetcher { | 20 namespace image_fetcher { |
20 struct RequestMetadata; | 21 struct RequestMetadata; |
21 } | 22 } |
22 | 23 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 const bool capture_thumbnails_; | 72 const bool capture_thumbnails_; |
72 | 73 |
73 image_fetcher::ImageDataFetcher image_data_fetcher_; | 74 image_fetcher::ImageDataFetcher image_data_fetcher_; |
74 | 75 |
75 base::WeakPtrFactory<ThumbnailSource> weak_ptr_factory_; | 76 base::WeakPtrFactory<ThumbnailSource> weak_ptr_factory_; |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(ThumbnailSource); | 78 DISALLOW_COPY_AND_ASSIGN(ThumbnailSource); |
78 }; | 79 }; |
79 | 80 |
80 #endif // CHROME_BROWSER_SEARCH_THUMBNAIL_SOURCE_H_ | 81 #endif // CHROME_BROWSER_SEARCH_THUMBNAIL_SOURCE_H_ |
OLD | NEW |