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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 // Holding the bitmaps in memory, keyed by website URL string. | 130 // Holding the bitmaps in memory, keyed by website URL string. |
131 ImageMap image_map_; | 131 ImageMap image_map_; |
132 | 132 |
133 scoped_ptr<ImageFetcher> image_fetcher_; | 133 scoped_ptr<ImageFetcher> image_fetcher_; |
134 | 134 |
135 scoped_ptr<leveldb_proto::ProtoDatabase<ImageData> > database_; | 135 scoped_ptr<leveldb_proto::ProtoDatabase<ImageData> > database_; |
136 | 136 |
137 bool database_ready_; | 137 bool database_ready_; |
138 | 138 |
| 139 base::ThreadChecker thread_checker_; |
| 140 |
139 base::WeakPtrFactory<ImageManager> weak_ptr_factory_; | 141 base::WeakPtrFactory<ImageManager> weak_ptr_factory_; |
140 | 142 |
141 base::ThreadChecker thread_checker_; | |
142 | |
143 DISALLOW_COPY_AND_ASSIGN(ImageManager); | 143 DISALLOW_COPY_AND_ASSIGN(ImageManager); |
144 }; | 144 }; |
145 | 145 |
146 } // namespace suggestions | 146 } // namespace suggestions |
147 | 147 |
148 #endif // COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_H_ | 148 #endif // COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_H_ |
OLD | NEW |