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..5dd9076edded58c451c71d40493d43b191af222d 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, |
|
Lalit Maganti
2015/08/26 21:18:21
Eh I missed the change from icon -> image here.
Lalit Maganti
2015/08/26 22:55:00
Done.
|
| Observer* observer); |
| + // Called to fetch the splashscreen image to be stored for the webapp with |
| + // the specified |id|. |
| + void FetchSplashscreenImage(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_; |
| + GURL splashscreen_url_; |
| // 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_image_size_in_dp_; |
| friend class base::RefCounted<AddToHomescreenDataFetcher>; |
| DISALLOW_COPY_AND_ASSIGN(AddToHomescreenDataFetcher); |