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

Unified Diff: chrome/browser/ui/android/infobars/app_banner_infobar.h

Issue 896243004: Start piping Android app promos through AppBannerInfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nits Created 5 years, 10 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/ui/android/infobars/app_banner_infobar.h
diff --git a/chrome/browser/ui/android/infobars/app_banner_infobar.h b/chrome/browser/ui/android/infobars/app_banner_infobar.h
index 955b8bd82aa4e19fc7032421faebe819c4b75abf..51c76a825165f5dbb1dd43d5e57be4a930d6f744 100644
--- a/chrome/browser/ui/android/infobars/app_banner_infobar.h
+++ b/chrome/browser/ui/android/infobars/app_banner_infobar.h
@@ -17,6 +17,11 @@ class AppBannerInfoBarDelegate;
class AppBannerInfoBar : public ConfirmInfoBar {
public:
+ // Constructs an AppBannerInfoBar promoting a native app.
+ AppBannerInfoBar(
+ scoped_ptr<banners::AppBannerInfoBarDelegate> delegate,
+ const base::android::ScopedJavaGlobalRef<jobject>& japp_data);
+
// Constructs an AppBannerInfoBar promoting a web app.
AppBannerInfoBar(
scoped_ptr<banners::AppBannerInfoBarDelegate> delegate,
@@ -29,6 +34,9 @@ class AppBannerInfoBar : public ConfirmInfoBar {
base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
JNIEnv* env) override;
+ // Native app: Details about the app.
+ base::android::ScopedJavaGlobalRef<jobject> japp_data_;
+
// Web app: URL for the app.
GURL app_url_;
« no previous file with comments | « chrome/browser/android/banners/app_banner_manager.cc ('k') | chrome/browser/ui/android/infobars/app_banner_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698