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

Side by Side Diff: chrome/browser/extensions/image_loading_tracker.h

Issue 11886073: Use ImageLoader instead of ImageLoadingTracker (Part 12) (Closed) Base URL: https://git.chromium.org/chromium/src.git@Issue_163929
Patch Set: Address code review feedback Created 7 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/extensions/tab_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_IMAGE_LOADING_TRACKER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_IMAGE_LOADING_TRACKER_H_
6 #define CHROME_BROWSER_EXTENSIONS_IMAGE_LOADING_TRACKER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_IMAGE_LOADING_TRACKER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // value from this method corresponds to the int that is passed to 125 // value from this method corresponds to the int that is passed to
126 // OnImageLoaded() the next time LoadImage() is invoked. 126 // OnImageLoaded() the next time LoadImage() is invoked.
127 int next_id() const { return next_id_; } 127 int next_id() const { return next_id_; }
128 128
129 private: 129 private:
130 // This class is deprecated. This just lists all currently remaining 130 // This class is deprecated. This just lists all currently remaining
131 // usage of this class, so once this list is empty this class can and 131 // usage of this class, so once this list is empty this class can and
132 // should be removed. 132 // should be removed.
133 friend class ExtensionInfoBar; 133 friend class ExtensionInfoBar;
134 friend class extensions::IconImage; 134 friend class extensions::IconImage;
135 friend class extensions::TabHelper;
136 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, Cache); 135 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, Cache);
137 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, 136 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest,
138 DeleteExtensionWhileWaitingForCache); 137 DeleteExtensionWhileWaitingForCache);
139 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, MultipleImages); 138 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, MultipleImages);
140 139
141 explicit ImageLoadingTracker(Observer* observer); 140 explicit ImageLoadingTracker(Observer* observer);
142 141
143 // Information for pending resource load operation for one or more image 142 // Information for pending resource load operation for one or more image
144 // representations. 143 // representations.
145 struct PendingLoadInfo { 144 struct PendingLoadInfo {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // Information for each LoadImage request is cached here. The integer 185 // Information for each LoadImage request is cached here. The integer
187 // identifies the id assigned to the request. 186 // identifies the id assigned to the request.
188 LoadMap load_map_; 187 LoadMap load_map_;
189 188
190 content::NotificationRegistrar registrar_; 189 content::NotificationRegistrar registrar_;
191 190
192 DISALLOW_COPY_AND_ASSIGN(ImageLoadingTracker); 191 DISALLOW_COPY_AND_ASSIGN(ImageLoadingTracker);
193 }; 192 };
194 193
195 #endif // CHROME_BROWSER_EXTENSIONS_IMAGE_LOADING_TRACKER_H_ 194 #endif // CHROME_BROWSER_EXTENSIONS_IMAGE_LOADING_TRACKER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698