| Index: chrome/browser/android/webapk/webapk_update_data_fetcher.h
|
| diff --git a/chrome/browser/android/webapk/webapk_update_data_fetcher.h b/chrome/browser/android/webapk/webapk_update_data_fetcher.h
|
| index 2f1db42aa7588ed391b4d4bbea17e7f00aa8cffb..7004f8a88ad58db888bf98c3cce7f07fded57a47 100644
|
| --- a/chrome/browser/android/webapk/webapk_update_data_fetcher.h
|
| +++ b/chrome/browser/android/webapk/webapk_update_data_fetcher.h
|
| @@ -60,12 +60,15 @@ class WebApkUpdateDataFetcher : public content::WebContentsObserver {
|
| // Called once the installable data has been fetched.
|
| void OnDidGetInstallableData(const InstallableData& installable_data);
|
|
|
| - // Called with the computed Murmur2 hash for the app icon.
|
| - void OnGotIconMurmur2Hash(const std::string& best_primary_icon_murmur2_hash);
|
| + // Called with the computed Murmur2 hash for the primary icon.
|
| + void OnGotPrimaryIconMurmur2Hash(const std::string& primary_icon_hash);
|
|
|
| void OnDataAvailable(const ShortcutInfo& info,
|
| - const std::string& best_primary_icon_murmur2_hash,
|
| - const SkBitmap& best_primary_icon);
|
| + const SkBitmap& primary_icon,
|
| + const std::string& primary_icon_murmur2_hash,
|
| + bool did_fetch_badge_icon,
|
| + const SkBitmap& badge_icon,
|
| + const std::string& badge_icon_murmur2_hash);
|
|
|
| // Called when a page has no Web Manifest or the Web Manifest is not WebAPK
|
| // compatible.
|
| @@ -88,7 +91,8 @@ class WebApkUpdateDataFetcher : public content::WebContentsObserver {
|
|
|
| // Downloaded data for |web_manifest_url_|.
|
| ShortcutInfo info_;
|
| - SkBitmap best_primary_icon_;
|
| + SkBitmap primary_icon_;
|
| + SkBitmap badge_icon_;
|
|
|
| base::WeakPtrFactory<WebApkUpdateDataFetcher> weak_ptr_factory_;
|
|
|
|
|