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

Unified Diff: chrome/browser/android/instantapps/instant_apps_infobar_delegate.h

Issue 2379783002: Instant App Banner logic. (Closed)
Patch Set: Fixing tests. Created 4 years, 2 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/instantapps/instant_apps_infobar_delegate.h
diff --git a/chrome/browser/android/instantapps/instant_apps_infobar_delegate.h b/chrome/browser/android/instantapps/instant_apps_infobar_delegate.h
index f8328b7b1eb6ee5a5557893df3da91c0f1cea237..7b259e6cb9689f32ad742cca6e71189828bea335 100644
--- a/chrome/browser/android/instantapps/instant_apps_infobar_delegate.h
+++ b/chrome/browser/android/instantapps/instant_apps_infobar_delegate.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_ANDROID_INSTANTAPPS_INSTANT_APPS_INFOBAR_DELEGATE_H_
#define CHROME_BROWSER_ANDROID_INSTANTAPPS_INSTANT_APPS_INFOBAR_DELEGATE_H_
+#include <string>
+
#include "base/android/jni_android.h"
#include "base/strings/string16.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
@@ -17,12 +19,14 @@ class InstantAppsInfoBarDelegate : public ConfirmInfoBarDelegate {
~InstantAppsInfoBarDelegate() override;
static void Create(InfoBarService* infobar_service,
- jobject jdata);
+ const jobject jdata,
+ const std::string& url);
base::android::ScopedJavaGlobalRef<jobject> data() { return data_; }
private:
- explicit InstantAppsInfoBarDelegate(jobject jdata);
+ explicit InstantAppsInfoBarDelegate(const jobject jdata,
+ const std::string& url);
// ConfirmInfoBarDelegate:
infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
@@ -33,6 +37,7 @@ class InstantAppsInfoBarDelegate : public ConfirmInfoBarDelegate {
base::android::ScopedJavaGlobalRef<jobject> java_delegate_;
base::android::ScopedJavaGlobalRef<jobject> data_;
+ std::string url_;
DISALLOW_COPY_AND_ASSIGN(InstantAppsInfoBarDelegate);
};
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/android/instantapps/instant_apps_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698