| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_H_ | 5 #ifndef COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_H_ |
| 6 #define COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_H_ | 6 #define COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
| 26 | 26 |
| 27 namespace gfx { | 27 namespace gfx { |
| 28 class Image; | 28 class Image; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace image_fetcher { | 31 namespace image_fetcher { |
| 32 class ImageFetcher; | 32 class ImageFetcher; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace net { | |
| 36 class URLRequestContextGetter; | |
| 37 } | |
| 38 | |
| 39 namespace suggestions { | 35 namespace suggestions { |
| 40 | 36 |
| 41 class ImageData; | 37 class ImageData; |
| 42 class SuggestionsProfile; | 38 class SuggestionsProfile; |
| 43 | 39 |
| 44 // A class used to fetch server images asynchronously and manage the caching | 40 // A class used to fetch server images asynchronously and manage the caching |
| 45 // layer (both in memory and on disk). | 41 // layer (both in memory and on disk). |
| 46 class ImageManager : public image_fetcher::ImageFetcherDelegate { | 42 class ImageManager : public image_fetcher::ImageFetcherDelegate { |
| 47 public: | 43 public: |
| 48 typedef std::vector<ImageData> ImageDataVector; | 44 typedef std::vector<ImageData> ImageDataVector; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 base::ThreadChecker thread_checker_; | 155 base::ThreadChecker thread_checker_; |
| 160 | 156 |
| 161 base::WeakPtrFactory<ImageManager> weak_ptr_factory_; | 157 base::WeakPtrFactory<ImageManager> weak_ptr_factory_; |
| 162 | 158 |
| 163 DISALLOW_COPY_AND_ASSIGN(ImageManager); | 159 DISALLOW_COPY_AND_ASSIGN(ImageManager); |
| 164 }; | 160 }; |
| 165 | 161 |
| 166 } // namespace suggestions | 162 } // namespace suggestions |
| 167 | 163 |
| 168 #endif // COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_H_ | 164 #endif // COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_H_ |
| OLD | NEW |