Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: chrome/browser/ui/ash/app_icon_loader_impl.h

Issue 12213093: Remove ImageLoadingTracker class (Closed) Base URL: https://git.chromium.org/chromium/src.git@Issue_163929
Patch Set: Fix merge conflict Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_ASH_APP_ICON_LOADER_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_APP_ICON_LOADER_IMPL_H_
6 #define CHROME_BROWSER_UI_ASH_APP_ICON_LOADER_IMPL_H_ 6 #define CHROME_BROWSER_UI_ASH_APP_ICON_LOADER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/extensions/extension_icon_image.h" 11 #include "chrome/browser/extensions/extension_icon_image.h"
12 #include "chrome/browser/ui/ash/app_icon_loader.h" 12 #include "chrome/browser/ui/ash/app_icon_loader.h"
13 13
14 class Profile; 14 class Profile;
15 15
16 namespace extensions { 16 namespace extensions {
17 class Extension; 17 class Extension;
18 } 18 }
19 19
20 namespace ash { 20 namespace ash {
21 21
22 // Default implementation of ash::AppIconLoader that interacts with the 22 // Default implementation of ash::AppIconLoader that interacts with the
23 // ExtensionService and ImageLoadingTracker to load images. 23 // ExtensionService and ImageLoader to load images.
24 class AppIconLoaderImpl : public AppIconLoader, 24 class AppIconLoaderImpl : public AppIconLoader,
25 public extensions::IconImage::Observer { 25 public extensions::IconImage::Observer {
26 public: 26 public:
27 AppIconLoaderImpl(Profile* profile, int icon_size, 27 AppIconLoaderImpl(Profile* profile, int icon_size,
28 AppIconLoader::Delegate* delegate); 28 AppIconLoader::Delegate* delegate);
29 virtual ~AppIconLoaderImpl(); 29 virtual ~AppIconLoaderImpl();
30 30
31 // AppIconLoader overrides: 31 // AppIconLoader overrides:
32 virtual void FetchImage(const std::string& id) OVERRIDE; 32 virtual void FetchImage(const std::string& id) OVERRIDE;
33 virtual void ClearImage(const std::string& id) OVERRIDE; 33 virtual void ClearImage(const std::string& id) OVERRIDE;
(...skipping 18 matching lines...) Expand all
52 ImageToExtensionIDMap map_; 52 ImageToExtensionIDMap map_;
53 53
54 const int icon_size_; 54 const int icon_size_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(AppIconLoaderImpl); 56 DISALLOW_COPY_AND_ASSIGN(AppIconLoaderImpl);
57 }; 57 };
58 58
59 } // namespace ash 59 } // namespace ash
60 60
61 #endif // CHROME_BROWSER_UI_ASH_APP_ICON_LOADER_IMPL_H_ 61 #endif // CHROME_BROWSER_UI_ASH_APP_ICON_LOADER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/tab_helper.h ('k') | chrome/browser/ui/cocoa/extensions/browser_action_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698