| 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
| 15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/ref_counted_memory.h" | 17 #include "base/memory/ref_counted_memory.h" |
| 18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
| 19 #include "base/task_runner.h" | 19 #include "base/task_runner.h" |
| 20 #include "base/threading/thread_checker.h" | 20 #include "base/threading/thread_checker.h" |
| 21 #include "components/image_fetcher/image_fetcher_delegate.h" | 21 #include "components/image_fetcher/core/image_fetcher_delegate.h" |
| 22 #include "components/leveldb_proto/proto_database.h" | 22 #include "components/leveldb_proto/proto_database.h" |
| 23 #include "components/suggestions/proto/suggestions.pb.h" | 23 #include "components/suggestions/proto/suggestions.pb.h" |
| 24 #include "ui/gfx/image/image_skia.h" | 24 #include "ui/gfx/image/image_skia.h" |
| 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 { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 base::ThreadChecker thread_checker_; | 155 base::ThreadChecker thread_checker_; |
| 156 | 156 |
| 157 base::WeakPtrFactory<ImageManager> weak_ptr_factory_; | 157 base::WeakPtrFactory<ImageManager> weak_ptr_factory_; |
| 158 | 158 |
| 159 DISALLOW_COPY_AND_ASSIGN(ImageManager); | 159 DISALLOW_COPY_AND_ASSIGN(ImageManager); |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 } // namespace suggestions | 162 } // namespace suggestions |
| 163 | 163 |
| 164 #endif // COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_H_ | 164 #endif // COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_H_ |
| OLD | NEW |