Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3993)

Unified Diff: chrome/browser/android/shortcut_helper.h

Issue 2259553002: Make AppBannerInfoBar install WebAPK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/shortcut_helper.h
diff --git a/chrome/browser/android/shortcut_helper.h b/chrome/browser/android/shortcut_helper.h
index a9c4b88851d25ac85752a6a7e292d7f38585c981..813579834f3a0a47076cd46a60a03cd83b8afb1c 100644
--- a/chrome/browser/android/shortcut_helper.h
+++ b/chrome/browser/android/shortcut_helper.h
@@ -21,6 +21,10 @@ class WebContents;
// ShortcutHelper in Java.
class ShortcutHelper {
public:
+ // Called when the package name of the WebAPK to install is available.
+ using WebApkPackageNameAvailableCallback = base::Callback<void(
+ const std::string& webapk_package)>;
+
// Registers JNI hooks.
static bool RegisterShortcutHelper(JNIEnv* env);
@@ -39,7 +43,8 @@ class ShortcutHelper {
static void InstallWebApkWithSkBitmap(
content::BrowserContext* browser_context,
const ShortcutInfo& info,
- const SkBitmap& icon_bitmap);
+ const SkBitmap& icon_bitmap,
+ const WebApkPackageNameAvailableCallback& callback);
// Adds a shortcut which opens in a fullscreen window to the launcher.
// |splash_image_callback| will be invoked once the Java-side operation has

Powered by Google App Engine
This is Rietveld 408576698