OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |