blob: 5931f6e2da0a1aa43a4288c4ca18ca64eb1a6d0f [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_WALLPAPER_WALLPAPER_DECODER_H_
#define ASH_WALLPAPER_WALLPAPER_DECODER_H_
#include "ash/ash_export.h"
#include "base/callback_forward.h"
#include "base/memory/scoped_refptr.h"
namespace user_manager {
class UserImage;
}
namespace ash {
using OnWallpaperDecoded = base::OnceCallback<void(
std::unique_ptr<user_manager::UserImage> user_image)>;
// Do an async wallpaper decode; |on_decoded| is run on the calling thread when
// the decode has finished.
ASH_EXPORT void DecodeWallpaper(std::unique_ptr<std::string> image_data,
OnWallpaperDecoded callback);
} // namespace ash
#endif // ASH_WALLPAPER_WALLPAPER_DECODER_H_