Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Side by Side Diff: components/suggestions/image_manager.h

Issue 780713002: Fix remaining WeakPtrFactory ordering problems (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/signin/core/browser/signin_manager.cc ('k') | components/sync_driver/device_info_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698