| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 CreateChromeApplicationShortcutView; | 133 friend class CreateChromeApplicationShortcutView; |
| 134 friend class ExtensionInfoBar; | 134 friend class ExtensionInfoBar; |
| 135 friend class Panel; | 135 friend class Panel; |
| 136 friend class ShellWindow; | 136 friend class ShellWindow; |
| 137 friend class extensions::IconImage; | 137 friend class extensions::IconImage; |
| 138 friend class extensions::TabHelper; | |
| 139 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, Cache); | 138 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, Cache); |
| 140 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, | 139 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, |
| 141 DeleteExtensionWhileWaitingForCache); | 140 DeleteExtensionWhileWaitingForCache); |
| 142 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, MultipleImages); | 141 FRIEND_TEST_ALL_PREFIXES(ImageLoadingTrackerTest, MultipleImages); |
| 143 | 142 |
| 144 explicit ImageLoadingTracker(Observer* observer); | 143 explicit ImageLoadingTracker(Observer* observer); |
| 145 | 144 |
| 146 // Information for pending resource load operation for one or more image | 145 // Information for pending resource load operation for one or more image |
| 147 // representations. | 146 // representations. |
| 148 struct PendingLoadInfo { | 147 struct PendingLoadInfo { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // Information for each LoadImage request is cached here. The integer | 188 // Information for each LoadImage request is cached here. The integer |
| 190 // identifies the id assigned to the request. | 189 // identifies the id assigned to the request. |
| 191 LoadMap load_map_; | 190 LoadMap load_map_; |
| 192 | 191 |
| 193 content::NotificationRegistrar registrar_; | 192 content::NotificationRegistrar registrar_; |
| 194 | 193 |
| 195 DISALLOW_COPY_AND_ASSIGN(ImageLoadingTracker); | 194 DISALLOW_COPY_AND_ASSIGN(ImageLoadingTracker); |
| 196 }; | 195 }; |
| 197 | 196 |
| 198 #endif // CHROME_BROWSER_EXTENSIONS_IMAGE_LOADING_TRACKER_H_ | 197 #endif // CHROME_BROWSER_EXTENSIONS_IMAGE_LOADING_TRACKER_H_ |
| OLD | NEW |