Index: chrome/browser/android/banners/app_banner_infobar_delegate_android.h |
diff --git a/chrome/browser/android/banners/app_banner_infobar_delegate_android.h b/chrome/browser/android/banners/app_banner_infobar_delegate_android.h |
index f678fb52c71d49d46ffd3a5d68d22d57a45bafaf..13b84f1a9472909aef1c78a1a049101b92ae2dcc 100644 |
--- a/chrome/browser/android/banners/app_banner_infobar_delegate_android.h |
+++ b/chrome/browser/android/banners/app_banner_infobar_delegate_android.h |
@@ -38,7 +38,8 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate { |
const content::Manifest& manifest, |
const GURL& icon_url, |
std::unique_ptr<SkBitmap> icon, |
- int event_request_id); |
+ int event_request_id, |
+ bool is_webapk); |
// Delegate for promoting an Android app. |
AppBannerInfoBarDelegateAndroid( |
@@ -68,8 +69,13 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate { |
private: |
void CreateJavaDelegate(); |
+ bool AcceptNativeApp(content::WebContents* web_contents); |
+ bool AcceptWebApp(content::WebContents* web_contents); |
+ bool AcceptWebApk(content::WebContents* web_contents); |
void SendBannerAccepted(content::WebContents* web_contents, |
const std::string& platform); |
+ void OnWebApkInstallFinished(bool success, const std::string& webapk_package); |
+ void RemoveInfoBarOnUIThread(); |
// ConfirmInfoBarDelegate: |
infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
@@ -99,6 +105,9 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate { |
int event_request_id_; |
bool has_user_interaction_; |
+ std::string webapk_package_name_; |
+ bool is_webapk_; |
+ |
DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBarDelegateAndroid); |
}; // AppBannerInfoBarDelegateAndroid |