| // Copyright 2023 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef COMPONENTS_WEBAPPS_BROWSER_ANDROID_WEBAPP_ICON_H_ |
| #define COMPONENTS_WEBAPPS_BROWSER_ANDROID_WEBAPP_ICON_H_ |
| #include "components/webapk/webapk.pb.h" |
| // Information related to WebAPK icon |
| explicit WebappIcon(const GURL& icon_url); |
| explicit WebappIcon(const GURL& icon_url, |
| webapk::Image::Usage usage); |
| WebappIcon(const WebappIcon&); |
| WebappIcon& operator=(const WebappIcon&); |
| const GURL url() const { return url_; } |
| void AddUsage(webapk::Image::Usage); |
| int GetIdealSizeInPx() const; |
| webapk::Image::Purpose purpose_; |
| std::set<webapk::Image::Usage> usages_; |
| #endif // COMPONENTS_WEBAPPS_BROWSER_ANDROID_WEBAPP_ICON_H_ |