Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegate.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegate.java |
| index cbf9cd07c152f767d6537b3187859d2e7f18d63e..4b2ffb19678ee7d78fc41afe30df78c4d4a1178f 100644 |
| --- a/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegate.java |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegate.java |
| @@ -35,6 +35,19 @@ interface ExternalNavigationDelegate { |
| boolean isSpecializedHandlerAvailable(List<ResolveInfo> intent); |
| /** |
| + * Returns the number of specialized intent handlers in {@params infos}. Specialized intent |
| + * handlers are intent handlers which handle only a few URLs (e.g. google maps or youtube). |
| + */ |
| + int countSpecializedHandlers(List<ResolveInfo> infos); |
| + |
| + /** |
| + * Returns the package name of the first valid WebAPK in {@link infos}. |
| + * @param infos ResolveInfos to search. |
| + * @return The package name of the first valid WebAPK. Null if no valid WebAPK was found. |
| + */ |
| + public String findValidWebApkPackageName(List<ResolveInfo> infos); |
|
Maria
2016/06/08 21:02:15
don't need public here
|
| + |
| + /** |
| * Get the name of the package of the currently running activity so that incoming intents |
| * can be identified as originating from this activity. |
| */ |