Chromium Code Reviews| Index: chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h |
| diff --git a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h |
| index 18a41733c506c08bb216c30d5ebe40e3b21234b9..97e341130ff84e2e99a90d24bd8b1f7e6b28e0ba 100644 |
| --- a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h |
| +++ b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h |
| @@ -53,8 +53,14 @@ class AddToHomescreenDataFetcher |
| // renderer process. The initialization is asynchronous and |
| // OnDidGetWebApplicationInfo is expected to be called when finished. |
| AddToHomescreenDataFetcher(content::WebContents* web_contents, |
| + int ideal_icon_size_in_dp, |
| + int ideal_splash_icon_size_in_dp, |
| Observer* observer); |
| + // Called to fetch the splashscreen icon to be stored for the webapp with |
| + // the specified |id|. |
| + void FetchSplashscreenIcon(const std::string& id); |
| + |
| // IPC message received when the initialization is finished. |
| void OnDidGetWebApplicationInfo(const WebApplicationInfo& web_app_info); |
| @@ -96,13 +102,14 @@ class AddToHomescreenDataFetcher |
| bool is_ready_; |
| base::Timer icon_timeout_timer_; |
| ShortcutInfo shortcut_info_; |
| + content::Manifest manifest_; |
|
mlamouri (slow - plz ping)
2015/08/24 16:43:54
You could probably save some bits by only keep the
Lalit Maganti
2015/08/25 11:38:44
I like the sound of just saving the URL TBH so I'v
|
| // The icon must only be set on the UI thread for thread safety. |
| SkBitmap shortcut_icon_; |
| base::CancelableTaskTracker favicon_task_tracker_; |
| - const int preferred_icon_size_in_px_; |
| - static const int kPreferredIconSizeInDp; |
| + const int ideal_icon_size_in_dp_; |
| + const int ideal_splash_icon_size_in_dp_; |
| friend class base::RefCounted<AddToHomescreenDataFetcher>; |
| DISALLOW_COPY_AND_ASSIGN(AddToHomescreenDataFetcher); |