| Index: chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java
|
| index fd99d14e1dc8091e7f3710431cab16d6eeb51afd..1bdfca59a8c5b2b66677132f7ce5015d28af227d 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java
|
| @@ -441,6 +441,11 @@ public class OfflinePageBridge {
|
| nativeRegisterRecentTab(mNativeOfflinePageBridge, tabId);
|
| }
|
|
|
| + /** Tells the native side that the tab of |webContents| will be closed. */
|
| + void willCloseTab(WebContents webContents) {
|
| + nativeWillCloseTab(mNativeOfflinePageBridge, webContents);
|
| + }
|
| +
|
| /** Tells the native side that a new tab has been removed for this profile. */
|
| void unregisterRecentTab(int tabId) {
|
| nativeUnregisterRecentTab(mNativeOfflinePageBridge, tabId);
|
| @@ -519,6 +524,7 @@ public class OfflinePageBridge {
|
| private native void nativeCheckPagesExistOffline(long nativeOfflinePageBridge, Object[] urls,
|
| CheckPagesExistOfflineCallbackInternal callback);
|
| private native void nativeRegisterRecentTab(long nativeOfflinePageBridge, int tabId);
|
| + private native void nativeWillCloseTab(long nativeOfflinePageBridge, WebContents webContents);
|
| private native void nativeUnregisterRecentTab(long nativeOfflinePageBridge, int tabId);
|
| @VisibleForTesting
|
| native void nativeGetRequestsInQueue(
|
|
|