Index: chrome/android/java/src/org/chromium/chrome/browser/banners/DetailsDelegate.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/banners/DetailsDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/banners/DetailsDelegate.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9e3654a643f8327e7f5de4ad8221e64c3e2bb315 |
--- /dev/null |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/banners/DetailsDelegate.java |
@@ -0,0 +1,24 @@ |
+// Copyright 2014 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.banners; |
+ |
+/** |
+ * Fetches data about the given app. |
+ */ |
+public interface DetailsDelegate { |
Yaron
2014/02/19 22:41:36
Nit: rename AppDetailsDelegate
gone
2014/02/20 22:07:24
Done.
|
+ /** |
+ * Retrieves information about the given package. |
+ * @param packageName Name of the package to retrieve details for. |
+ * @param iconSize Size of the icon to retrieve. |
+ * @param data Data about the app will be placed in this class. |
+ * @return True if the data was retrieved successfully. |
+ */ |
+ public boolean getAppDetails(String packageName, int iconSize, AppData data); |
+ |
+ /** |
+ * Destroy the delegate, cleaning up any open hooks. |
+ */ |
+ public void destroy(); |
+} |