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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java

Issue 1223023002: Check whether a second intent should be ignored in custom tabs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compile error Created 5 years, 5 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 | « chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java ('k') | no next file » | 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/customtabs/CustomTabContentHandler.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java
index 3ea598eba78ab1196f2473da3a2f30a1caed367f..80550d5dc3810c3b4503ea10ccdebb3e76dd03c1 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java
@@ -4,6 +4,8 @@
package org.chromium.chrome.browser.customtabs;
+import android.content.Intent;
+
import org.chromium.content_public.browser.LoadUrlParams;
/**
@@ -25,4 +27,11 @@ public interface CustomTabContentHandler {
* @return The session id this {@link CustomTabContentHandler} is associated with.
*/
long getSessionId();
+
+ /**
+ * Check whether an intent is valid or should be ignored within this content handler.
+ * @param intent The intent to check.
+ * @return Whether the intent should be ignored.
+ */
+ boolean shouldIgnoreIntent(Intent intent);
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698