#ifndef ASH_QUICK_INSERT_QUICK_INSERT_ASSET_FETCHER_IMPL_DELEGATE_H_
#define ASH_QUICK_INSERT_QUICK_INSERT_ASSET_FETCHER_IMPL_DELEGATE_H_
#include "ash/ash_export.h"
#include "base/files/file.h"
#include "base/memory/scoped_refptr.h"
class SkBitmap;
namespace gfx {
class Size;
}
namespace network {
class SharedURLLoaderFactory;
}
namespace ash {
class ASH_EXPORT QuickInsertAssetFetcherImplDelegate {
public:
using FetchFileThumbnailCallback =
base::OnceCallback<void(const SkBitmap* bitmap, base::File::Error error)>;
virtual ~QuickInsertAssetFetcherImplDelegate() = default;
virtual scoped_refptr<network::SharedURLLoaderFactory>
GetSharedURLLoaderFactory() = 0;
virtual void FetchFileThumbnail(const base::FilePath& path,
const gfx::Size& size,
FetchFileThumbnailCallback callback) = 0;
};
}
#endif