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

Unified Diff: chrome/browser/android/banners/app_banner_infobar_delegate_android.h

Issue 1310223002: webapps: initial addition of splash screen icon downloading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webapps-database-exp
Patch Set: Rebase Created 5 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/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 52c77c1166e29f50679ad5ce4dc132a2dfb40c56..c7efe60b346dbdd198f23d1903285eb4fb247537 100644
--- a/chrome/browser/android/banners/app_banner_infobar_delegate_android.h
+++ b/chrome/browser/android/banners/app_banner_infobar_delegate_android.h
@@ -7,6 +7,7 @@
#include "base/android/scoped_java_ref.h"
#include "base/strings/string16.h"
+#include "chrome/browser/android/banners/app_banner_data_fetcher_android.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
#include "content/public/common/manifest.h"
#include "ui/gfx/image/image.h"
@@ -30,6 +31,7 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate {
// Delegate for promoting a web app.
AppBannerInfoBarDelegateAndroid(
int event_request_id,
+ scoped_refptr<AppBannerDataFetcherAndroid> data_fetcher,
const base::string16& app_title,
SkBitmap* app_icon,
const content::Manifest& web_app_data);
@@ -74,10 +76,14 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate {
base::android::ScopedJavaGlobalRef<jobject> java_delegate_;
+ int event_request_id_;
gone 2015/08/27 18:00:29 why'd this get moved up?
Lalit Maganti 2015/08/27 18:57:14 To make it consistent with the ordering in the con
gone 2015/08/27 19:06:05 Rephrasing then: why did put data_fetcher_ in the
Lalit Maganti 2015/08/27 19:16:40 Hmm that's a fair point. It's just adding noise to
Lalit Maganti 2015/09/01 15:33:08 Done.
+
+ // Used to fetch the splash screen icon for webapps.
+ scoped_refptr<AppBannerDataFetcherAndroid> data_fetcher_;
+
base::string16 app_title_;
scoped_ptr<SkBitmap> app_icon_;
- int event_request_id_;
content::Manifest web_app_data_;
base::android::ScopedJavaGlobalRef<jobject> native_app_data_;

Powered by Google App Engine
This is Rietveld 408576698