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_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_APP_ICON_LOADER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_ICON_LOADER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_APP_ICON_LOADER_H_ | 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_ICON_LOADER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "chrome/browser/extensions/image_loading_tracker.h" | 12 #include "chrome/browser/extensions/image_loading_tracker.h" |
13 #include "chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h" | 13 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 namespace extensions { | 17 namespace extensions { |
18 class Extension; | 18 class Extension; |
19 } | 19 } |
20 | 20 |
21 | 21 |
22 // Default implementation of LauncherUpdater::AppIconLoader that interacts | 22 // Default implementation of LauncherUpdater::AppIconLoader that interacts |
23 // with the ExtensionService and ImageLoadingTracker to load images. | 23 // with the ExtensionService and ImageLoadingTracker to load images. |
(...skipping 21 matching lines...) Expand all Loading... |
45 | 45 |
46 // Used to load images. | 46 // Used to load images. |
47 scoped_ptr<ImageLoadingTracker> image_loader_; | 47 scoped_ptr<ImageLoadingTracker> image_loader_; |
48 | 48 |
49 // Maps from id from the ImageLoadingTracker to the extension id. | 49 // Maps from id from the ImageLoadingTracker to the extension id. |
50 ImageLoaderIDToExtensionIDMap map_; | 50 ImageLoaderIDToExtensionIDMap map_; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(LauncherAppIconLoader); | 52 DISALLOW_COPY_AND_ASSIGN(LauncherAppIconLoader); |
53 }; | 53 }; |
54 | 54 |
55 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_APP_ICON_LOADER_H_ | 55 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_ICON_LOADER_H_ |
OLD | NEW |