| Index: chrome/android/java/src/org/chromium/chrome/browser/datausage/DataUseTabUIManager.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/datausage/DataUseTabUIManager.java b/chrome/android/java/src/org/chromium/chrome/browser/datausage/DataUseTabUIManager.java
|
| index a02f20ac8a238394dc96ad2fdd841bfc073409ac..4688135085ede6172507a1c98136623c919c36f5 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/datausage/DataUseTabUIManager.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/datausage/DataUseTabUIManager.java
|
| @@ -34,7 +34,19 @@ public class DataUseTabUIManager {
|
| SessionTabHelper.sessionIdForTab(tab.getWebContents()), tab.getProfile());
|
| }
|
|
|
| - private static native boolean nativeHasDataUseSessionStarted(int tabId, Profile profile);
|
| + /**
|
| + * Tells native code that a custom tab is loading a url from the given client package.
|
| + *
|
| + * @param tab The tab that is loading.
|
| + * @param packageName The client package for the custom tab loading a url.
|
| + */
|
| + public static void customTabIsLoadingURL(Tab tab, String packageName) {
|
| + nativeCustomTabIsLoadingURL(SessionTabHelper.sessionIdForTab(tab.getWebContents()),
|
| + packageName, tab.getProfile());
|
| + }
|
|
|
| + private static native boolean nativeHasDataUseSessionStarted(int tabId, Profile profile);
|
| private static native boolean nativeIsDataUseSessionExiting(int tabId, Profile profile);
|
| + private static native void nativeCustomTabIsLoadingURL(int tabID, String packageName,
|
| + Profile profile);
|
| }
|
|
|