Index: chrome/android/java/src/org/chromium/chrome/browser/instantapps/InstantAppsBannerData.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/instantapps/InstantAppsBannerData.java b/chrome/android/java/src/org/chromium/chrome/browser/instantapps/InstantAppsBannerData.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d062da2fc2efb3c9b7a03fe55dbdaab259fcb646 |
--- /dev/null |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/instantapps/InstantAppsBannerData.java |
@@ -0,0 +1,37 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+package org.chromium.chrome.browser.instantapps; |
+ |
+import android.graphics.Bitmap; |
+ |
+/** |
+ * Encapsulates information needed to display an {@link InstantAppsInfoBar}. |
+ */ |
+public class InstantAppsBannerData { |
+ private String mAppName; |
+ private Bitmap mAppIcon; |
+ private String mUrl; |
+ |
+ public InstantAppsBannerData(String appName, Bitmap icon, String url) { |
+ mAppName = appName; |
+ mAppIcon = icon; |
+ mUrl = url; |
+ } |
+ |
+ /** @return The name of the Instant App. */ |
+ public String getAppName() { |
+ return mAppName; |
+ } |
+ |
+ /** @return The badged Instant App icon. */ |
+ public Bitmap getIcon() { |
+ return mAppIcon; |
+ } |
+ |
+ /** @return The host name for the URL. */ |
+ public String getUrl() { |
+ return mUrl; |
+ } |
+} |