| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // Returns the ID used for the next image that is loaded. That is, the return | 124 // Returns the ID used for the next image that is loaded. That is, the return |
| 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 Panel; | |
| 135 friend class extensions::IconImage; | 134 friend class extensions::IconImage; |
| 136 friend class extensions::TabHelper; | 135 friend class extensions::TabHelper; |
| 137 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, Cache); | 136 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, Cache); |
| 138 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, | 137 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, |
| 139 DeleteExtensionWhileWaitingForCache); | 138 DeleteExtensionWhileWaitingForCache); |
| 140 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, MultipleImages); | 139 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, MultipleImages); |
| 141 | 140 |
| 142 explicit ImageLoadingTracker(Observer* observer); | 141 explicit ImageLoadingTracker(Observer* observer); |
| 143 | 142 |
| 144 // Information for pending resource load operation for one or more image | 143 // Information for pending resource load operation for one or more image |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // Information for each LoadImage request is cached here. The integer | 186 // Information for each LoadImage request is cached here. The integer |
| 188 // identifies the id assigned to the request. | 187 // identifies the id assigned to the request. |
| 189 LoadMap load_map_; | 188 LoadMap load_map_; |
| 190 | 189 |
| 191 content::NotificationRegistrar registrar_; | 190 content::NotificationRegistrar registrar_; |
| 192 | 191 |
| 193 DISALLOW_COPY_AND_ASSIGN(ImageLoadingTracker); | 192 DISALLOW_COPY_AND_ASSIGN(ImageLoadingTracker); |
| 194 }; | 193 }; |
| 195 | 194 |
| 196 #endif // CHROME_BROWSER_EXTENSIONS_IMAGE_LOADING_TRACKER_H_ | 195 #endif // CHROME_BROWSER_EXTENSIONS_IMAGE_LOADING_TRACKER_H_ |
| OLD | NEW |