// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_BROWSER_MANIFEST_ICON_DOWNLOADER_H_ #define CONTENT_PUBLIC_BROWSER_MANIFEST_ICON_DOWNLOADER_H_ #include <vector> #include "base/functional/callback_forward.h" #include "base/memory/weak_ptr.h" #include "content/common/content_export.h" #include "content/public/browser/global_routing_id.h" class GURL; class SkBitmap; namespace gfx { class Size; } // namespace gfx namespace content { class WebContents; // Helper class which downloads the icon located at a specified URL. If the // icon file contains multiple icons then it attempts to pick the one closest in // size bigger than or equal to ideal_icon_size_in_px, taking into account the // density of the device. If a bigger icon is chosen then, the icon is scaled // down to be equal to ideal_icon_size_in_px. Smaller icons will be chosen down // to the value specified by |minimum_icon_size_in_px|. class CONTENT_EXPORT ManifestIconDownloader final { … }; } // namespace content #endif // CONTENT_PUBLIC_BROWSER_MANIFEST_ICON_DOWNLOADER_H_