| Index: extensions/browser/image_loader.h
|
| diff --git a/extensions/browser/image_loader.h b/extensions/browser/image_loader.h
|
| index 3a7c1b4c607024d1b5ece976d77522758fc49538..8c1f446f3c2270a24a7594f3aec75c3bec95495b 100644
|
| --- a/extensions/browser/image_loader.h
|
| +++ b/extensions/browser/image_loader.h
|
| @@ -80,15 +80,24 @@ class ImageLoader : public KeyedService {
|
| // if the image was found in the cache.
|
| // Note this method loads a raw bitmap from the resource. All sizes given are
|
| // assumed to be in pixels.
|
| - void LoadImageAsync(const extensions::Extension* extension,
|
| + // TODO(estade): remove this in favor of LoadImageAtEveryScaleFactorAsync,
|
| + // and rename the latter to LoadImageAsync.
|
| + void LoadImageAsync(const Extension* extension,
|
| const ExtensionResource& resource,
|
| const gfx::Size& max_size,
|
| const ImageLoaderImageCallback& callback);
|
|
|
| + // Loads and returns a gfx::Image that has representations at all supported
|
| + // scale factors.
|
| + void LoadImageAtEveryScaleFactorAsync(
|
| + const Extension* extension,
|
| + const gfx::Size& dip_size,
|
| + const ImageLoaderImageCallback& callback);
|
| +
|
| // Same as LoadImageAsync() above except it loads multiple images from the
|
| // same extension. This is used to load multiple resolutions of the same image
|
| // type.
|
| - void LoadImagesAsync(const extensions::Extension* extension,
|
| + void LoadImagesAsync(const Extension* extension,
|
| const std::vector<ImageRepresentation>& info_list,
|
| const ImageLoaderImageCallback& callback);
|
|
|
| @@ -99,7 +108,7 @@ class ImageLoader : public KeyedService {
|
| //
|
| // If multiple images of the same logical size are loaded, they will be
|
| // combined into a single ImageSkia in the ImageFamily.
|
| - void LoadImageFamilyAsync(const extensions::Extension* extension,
|
| + void LoadImageFamilyAsync(const Extension* extension,
|
| const std::vector<ImageRepresentation>& info_list,
|
| const ImageLoaderImageFamilyCallback& callback);
|
|
|
|
|