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

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

Issue 2348573002: Add APIs to cache navigation info and send via callback (Closed)
Patch Set: Created 4 years, 3 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
Index: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java
index e6e6d0bf82e28c72c63b7ff9fbd6b38180bba8c4..89c0ea9ac3dfc4f028f91d33206766557808bb28 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java
@@ -480,6 +480,11 @@ public class CustomTabsConnection {
return mClientManager.shouldPrerenderOnCellularForSession(session);
}
+ /** @see ClientManager#shouldSendNavigationInfoForSession(CustomTabsSessionToken) */
+ public boolean shouldSendNavigationInfoForSession(CustomTabsSessionToken session) {
+ return mClientManager.shouldSendNavigationInfoForSession(session);
+ }
+
/** See {@link ClientManager#getClientPackageNameForSession(CustomTabsSessionToken)} */
public String getClientPackageNameForSession(CustomTabsSessionToken session) {
return mClientManager.getClientPackageNameForSession(session);
@@ -524,6 +529,16 @@ public class CustomTabsConnection {
public void sendFirstRunCallbackIfNecessary(Intent intent, boolean resultOK) { }
/**
+ * Sends the navigation info that was captured to the client callback.
+ * @param session The session to use for getting client callback.
+ * @param url The current url for the tab.
+ * @param title The current title for the tab.
+ * @param screenshot A screenshot of the tab contents.
+ */
+ public void sendNavigationInfo(
+ CustomTabsSessionToken session, String url, String title, Bitmap screenshot) { }
+
+ /**
* Notifies the application of a navigation event.
*
* Delivers the {@link CustomTabsConnectionCallback#onNavigationEvent}

Powered by Google App Engine
This is Rietveld 408576698