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_AURA_LAUNCHER_LAUNCHER_ICON_LOADER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_ICON_LOADER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_LAUNCHER_ICON_LOADER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_ICON_LOADER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/extensions/image_loading_tracker.h" | 13 #include "chrome/browser/extensions/image_loading_tracker.h" |
14 #include "chrome/browser/ui/views/aura/launcher/chrome_launcher_delegate.h" | 14 #include "chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.h" |
15 | 15 |
16 class Extension; | 16 class Extension; |
17 class Profile; | 17 class Profile; |
18 | 18 |
19 // Default implementation of LauncherUpdater::AppIconLoader that interacts | 19 // Default implementation of LauncherUpdater::AppIconLoader that interacts |
20 // with the ExtensionService and ImageLoadingTracker to load images. | 20 // with the ExtensionService and ImageLoadingTracker to load images. |
21 class LauncherIconLoader : public ChromeLauncherDelegate::AppIconLoader, | 21 class LauncherIconLoader : public ChromeLauncherDelegate::AppIconLoader, |
22 public ImageLoadingTracker::Observer { | 22 public ImageLoadingTracker::Observer { |
23 public: | 23 public: |
24 LauncherIconLoader(Profile* profile, ChromeLauncherDelegate* host); | 24 LauncherIconLoader(Profile* profile, ChromeLauncherDelegate* host); |
(...skipping 25 matching lines...) Expand all Loading... |
50 | 50 |
51 // Used to load images. | 51 // Used to load images. |
52 scoped_ptr<ImageLoadingTracker> image_loader_; | 52 scoped_ptr<ImageLoadingTracker> image_loader_; |
53 | 53 |
54 // Maps from id from the ImageLoadingTracker to the extension id. | 54 // Maps from id from the ImageLoadingTracker to the extension id. |
55 ImageLoaderIDToExtensionIDMap map_; | 55 ImageLoaderIDToExtensionIDMap map_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(LauncherIconLoader); | 57 DISALLOW_COPY_AND_ASSIGN(LauncherIconLoader); |
58 }; | 58 }; |
59 | 59 |
60 #endif // CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_LAUNCHER_ICON_LOADER_H_ | 60 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_ICON_LOADER_H_ |
OLD | NEW |