| 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 631b1d0ea96a495bf3fa5fa6269e8903947fcce3..ee209abec54703ea8f3f3f5e3ed94c60dc216ddf 100644
|
| --- a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h
|
| +++ b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h
|
| @@ -14,6 +14,10 @@
|
| #include "content/public/browser/web_contents_observer.h"
|
| #include "third_party/skia/include/core/SkBitmap.h"
|
|
|
| +namespace base {
|
| +class TaskRunner;
|
| +}
|
| +
|
| namespace content {
|
| class WebContents;
|
| }
|
| @@ -114,16 +118,18 @@ class AddToHomescreenDataFetcher
|
| // Creates the launcher icon from the given bitmap. shortcut_info_.url is
|
| // used to generate an icon if there is no bitmap in |bitmap_result| or the
|
| // bitmap is not large enough.
|
| - void CreateLauncherIconFromFaviconInBackground(
|
| + SkBitmap CreateLauncherIconFromFaviconInBackground(
|
| const favicon_base::FaviconRawBitmapResult& bitmap_result);
|
|
|
| // Creates the launcher icon from the given |raw_icon|.
|
| void CreateLauncherIcon(const SkBitmap& raw_icon);
|
| - void CreateLauncherIconInBackground(const SkBitmap& raw_icon);
|
| + SkBitmap CreateLauncherIconInBackground(const SkBitmap& raw_icon);
|
|
|
| // Notifies the observer that the shortcut data is all available.
|
| void NotifyObserver(const SkBitmap& icon);
|
|
|
| + scoped_refptr<base::TaskRunner> background_task_runner_;
|
| +
|
| Observer* weak_observer_;
|
|
|
| // The icons must only be set on the UI thread for thread safety.
|
|
|