Index: chrome/browser/ui/webui/extensions/extension_icon_source.h |
=================================================================== |
--- chrome/browser/ui/webui/extensions/extension_icon_source.h (revision 132198) |
+++ chrome/browser/ui/webui/extensions/extension_icon_source.h (working copy) |
@@ -78,6 +78,9 @@ |
// Encapsulates the request parameters for |request_id|. |
struct ExtensionIconRequest; |
+ // Returns the bitmap for the webstore icon. |
+ const SkBitmap* GetWebStoreImage(); |
+ |
// Returns the bitmap for the default app image. |
const SkBitmap* GetDefaultAppImage(); |
@@ -92,6 +95,12 @@ |
// Loads the default image for |request_id| and returns to the client. |
void LoadDefaultImage(int request_id); |
+ // Tries loading component extension image. These usually come from resources |
+ // instead of file system. Returns false if a given |icon| does not have |
+ // a corresponding image in bundled resources. |
+ bool TryLoadingComponentExtensionImage(const ExtensionResource& icon, |
+ int request_id); |
+ |
// Loads the extension's |icon| for the given |request_id| and returns the |
// image to the client. |
void LoadExtensionImage(const ExtensionResource& icon, int request_id); |