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

Side by Side Diff: chrome/browser/ui/app_icon_loader.h

Issue 2819413003: Refactor extension app icon. (Closed)
Patch Set: nit Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_APP_ICON_LOADER_H_ 5 #ifndef CHROME_BROWSER_UI_APP_ICON_LOADER_H_
6 #define CHROME_BROWSER_UI_APP_ICON_LOADER_H_ 6 #define CHROME_BROWSER_UI_APP_ICON_LOADER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "chrome/browser/ui/app_icon_loader_delegate.h" 11 #include "chrome/browser/ui/app_icon_loader_delegate.h"
12 12
13 class Profile; 13 class Profile;
14 14
15 // Base class that loads and updates Chrome app's icons. 15 // Base class that loads and updates Chrome app's icons.
16 // TODO(khmel): Switch to using ChromeAppIconService instead ChromeAppIconLoader
17 // and ArcAppIconLoader.
16 class AppIconLoader { 18 class AppIconLoader {
17 public: 19 public:
18 virtual ~AppIconLoader(); 20 virtual ~AppIconLoader();
19 21
20 // Returns true is this AppIconLoader is able to load an image for the 22 // Returns true is this AppIconLoader is able to load an image for the
21 // requested app. 23 // requested app.
22 virtual bool CanLoadImageForApp(const std::string& app_id) = 0; 24 virtual bool CanLoadImageForApp(const std::string& app_id) = 0;
23 25
24 // Fetches the image for the specified id. When done (which may be 26 // Fetches the image for the specified id. When done (which may be
25 // synchronous), this should invoke SetAppImage() on the delegate. 27 // synchronous), this should invoke SetAppImage() on the delegate.
(...skipping 21 matching lines...) Expand all
47 Profile* const profile_ = nullptr; 49 Profile* const profile_ = nullptr;
48 const int icon_size_ = 0; 50 const int icon_size_ = 0;
49 51
50 // The delegate object which receives the icon images. No ownership. 52 // The delegate object which receives the icon images. No ownership.
51 AppIconLoaderDelegate* const delegate_ = nullptr; 53 AppIconLoaderDelegate* const delegate_ = nullptr;
52 54
53 DISALLOW_COPY_AND_ASSIGN(AppIconLoader); 55 DISALLOW_COPY_AND_ASSIGN(AppIconLoader);
54 }; 56 };
55 57
56 #endif // CHROME_BROWSER_UI_APP_ICON_LOADER_H_ 58 #endif // CHROME_BROWSER_UI_APP_ICON_LOADER_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/application_notifier_source.cc ('k') | chrome/browser/ui/app_list/arc/arc_app_list_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698