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

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

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 typedef std::vector<base::Callback<void(const GURL&, const SkBitmap*)> > 75 typedef std::vector<base::Callback<void(const GURL&, const SkBitmap*)> >
76 CallbackVector; 76 CallbackVector;
77 typedef base::hash_map<std::string, scoped_refptr<base::RefCountedMemory>> 77 typedef base::hash_map<std::string, scoped_refptr<base::RefCountedMemory>>
78 ImageMap; 78 ImageMap;
79 79
80 // State related to an image fetch (associated website url, image_url, 80 // State related to an image fetch (associated website url, image_url,
81 // pending callbacks). 81 // pending callbacks).
82 struct ImageCacheRequest { 82 struct ImageCacheRequest {
83 ImageCacheRequest(); 83 ImageCacheRequest();
84 ImageCacheRequest(const ImageCacheRequest& other);
84 ~ImageCacheRequest(); 85 ~ImageCacheRequest();
85 86
86 GURL url; 87 GURL url;
87 GURL image_url; 88 GURL image_url;
88 // Queue for pending callbacks, which may accumulate while the request is in 89 // Queue for pending callbacks, which may accumulate while the request is in
89 // flight. 90 // flight.
90 CallbackVector callbacks; 91 CallbackVector callbacks;
91 }; 92 };
92 93
93 typedef std::map<const GURL, ImageCacheRequest> ImageCacheRequestMap; 94 typedef std::map<const GURL, ImageCacheRequest> ImageCacheRequestMap;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 base::ThreadChecker thread_checker_; 152 base::ThreadChecker thread_checker_;
152 153
153 base::WeakPtrFactory<ImageManager> weak_ptr_factory_; 154 base::WeakPtrFactory<ImageManager> weak_ptr_factory_;
154 155
155 DISALLOW_COPY_AND_ASSIGN(ImageManager); 156 DISALLOW_COPY_AND_ASSIGN(ImageManager);
156 }; 157 };
157 158
158 } // namespace suggestions 159 } // namespace suggestions
159 160
160 #endif // COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_H_ 161 #endif // COMPONENTS_SUGGESTIONS_IMAGE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698