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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java

Issue 2705323006: Last_n: Do not save a snapshot of a closing tab. (Closed)
Patch Set: Rebase after base change landed. Created 3 years, 10 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/offlinepages/OfflinePageUtils.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/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 676c39ff27278d77419f5460852771b17acc17f0..04ee1629cbc7249ec8cdc9d5fab006418f3a8709 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
@@ -444,6 +444,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);
@@ -522,6 +527,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(
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtils.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698