1 // Copyright 2020 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_UI_ASH_IMAGE_DOWNLOADER_IMPL_H_
6 #define CHROME_BROWSER_UI_ASH_IMAGE_DOWNLOADER_IMPL_H_
7 
8 #include "ash/public/cpp/image_downloader.h"
9 
10 // Download images for ash using the active user profile. Fail and return null
11 // image if there is no active user.
12 class ImageDownloaderImpl : public ash::ImageDownloader {
13  public:
14   ImageDownloaderImpl();
15   ~ImageDownloaderImpl() override;
16 
17   // ash::ImageDownloader:
18   void Download(const GURL& url,
19                 const net::NetworkTrafficAnnotationTag& annotation_tag,
20                 ash::ImageDownloader::DownloadCallback callback) override;
21 };
22 
23 #endif  // CHROME_BROWSER_UI_ASH_IMAGE_DOWNLOADER_IMPL_H_
24