Chromium Code Reviews| Index: chrome/browser/android/shortcut_helper.h |
| diff --git a/chrome/browser/android/shortcut_helper.h b/chrome/browser/android/shortcut_helper.h |
| index 1c69e53edf194b1d8c92f901ecc7d9d981bdde72..78849c25ab0090d48d4b56aa305c1d63c9fff8a4 100644 |
| --- a/chrome/browser/android/shortcut_helper.h |
| +++ b/chrome/browser/android/shortcut_helper.h |
| @@ -5,11 +5,15 @@ |
| #ifndef CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ |
| #define CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ |
| +#include <string> |
| +#include <vector> |
| + |
| #include "base/android/jni_android.h" |
| #include "base/android/jni_weak_ref.h" |
| #include "base/callback_forward.h" |
| #include "base/macros.h" |
| #include "chrome/browser/android/shortcut_info.h" |
| +#include "chrome/browser/android/webapk/webapk_info.h" |
| #include "chrome/browser/android/webapk/webapk_installer.h" |
| #include "third_party/skia/include/core/SkBitmap.h" |
| @@ -22,6 +26,9 @@ class WebContents; |
| // ShortcutHelper in Java. |
| class ShortcutHelper { |
| public: |
| + typedef base::Callback<void(std::vector<const WebApkInfo>&)> |
|
pkotwicz
2017/01/20 20:33:33
This should be:
typedef base::Callback<void(const
dominickn
2017/01/23 00:48:07
Agreed: const std::vector here
gonzalon
2017/01/23 16:58:51
Done.
|
| + WebApkInfoCallback; |
| + |
| // Registers JNI hooks. |
| static bool RegisterShortcutHelper(JNIEnv* env); |
| @@ -114,6 +121,10 @@ class ShortcutHelper { |
| // when the Web Manifest does not specify a scope URL. |
| static GURL GetScopeFromURL(const GURL& url); |
| + // Fetches information on all the WebAPKs installed on the device and returns |
| + // the info to the |callback|. |
| + static void ListWebApks(const WebApkInfoCallback& callback); |
|
dominickn
2017/01/23 00:48:07
Call this RetrieveWebApks
gonzalon
2017/01/23 16:58:51
Done.
|
| + |
| private: |
| ShortcutHelper() = delete; |
| ~ShortcutHelper() = delete; |