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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegate.java

Issue 2035183002: Upstream: Launch WebAPK without showing intent picker when user taps link in WebAPK scope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6a4cc99c31cf2ff84d7337ffbc228babd3b2ea5d 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.
+ */
+ String findValidWebApkPackageName(List<ResolveInfo> infos);
+
+ /**
* Get the name of the package of the currently running activity so that incoming intents
* can be identified as originating from this activity.
*/
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698