| Index: chrome/browser/android/shortcut_helper.h
|
| diff --git a/chrome/browser/android/shortcut_helper.h b/chrome/browser/android/shortcut_helper.h
|
| index bd7f0c4cdbb51ebf8fe97c7b3101f0af88aee0d4..063c70d2716e11074d7c69ea06a560db01567653 100644
|
| --- a/chrome/browser/android/shortcut_helper.h
|
| +++ b/chrome/browser/android/shortcut_helper.h
|
| @@ -13,6 +13,7 @@
|
| #include "third_party/skia/include/core/SkBitmap.h"
|
|
|
| namespace content {
|
| +class BrowserContext;
|
| class WebContents;
|
| } // namespace content
|
|
|
| @@ -29,6 +30,7 @@ class ShortcutHelper {
|
| // or AddShortcutInBackgroundWithSkBitmap.
|
| // Must not be called on the UI thread.
|
| static void AddToLauncherInBackgroundWithSkBitmap(
|
| + content::BrowserContext* browser_context,
|
| const ShortcutInfo& info,
|
| const std::string& webapp_id,
|
| const SkBitmap& icon_bitmap,
|
| @@ -37,8 +39,8 @@ class ShortcutHelper {
|
| // Installs WebAPK and adds shortcut to the launcher.
|
| // Must not be called on the UI thread.
|
| static void InstallWebApkInBackgroundWithSkBitmap(
|
| + content::BrowserContext* browser_context,
|
| const ShortcutInfo& info,
|
| - const std::string& webapp_id,
|
| const SkBitmap& icon_bitmap);
|
|
|
| // Adds a shortcut which opens in a fullscreen window to the launcher.
|
| @@ -59,6 +61,15 @@ class ShortcutHelper {
|
| const ShortcutInfo& info,
|
| const SkBitmap& icon_bitmap);
|
|
|
| + // Called after either:
|
| + // - A request to install the WebAPK has been sent.
|
| + // OR
|
| + // - WebAPK creation process fails.
|
| + // |success| indicates whether the request was issued to the server. A "true"
|
| + // value of |success| does not guarantee that the WebAPK will be successfully
|
| + // installed.
|
| + static void OnBuiltWebApk(bool success);
|
| +
|
| // Returns the ideal size for an icon representing a web app.
|
| static int GetIdealHomescreenIconSizeInDp();
|
|
|
|
|