Chromium Code Reviews| Index: chrome/browser/android/offline_pages/recent_tab_helper.h |
| diff --git a/chrome/browser/android/offline_pages/recent_tab_helper.h b/chrome/browser/android/offline_pages/recent_tab_helper.h |
| index 50a3cda30a7d4b05c1d01307e0f37ae044768461..153df8a9f1fcb3671adcb5a3b38266ce4db389e1 100644 |
| --- a/chrome/browser/android/offline_pages/recent_tab_helper.h |
| +++ b/chrome/browser/android/offline_pages/recent_tab_helper.h |
| @@ -40,6 +40,11 @@ class RecentTabHelper |
| void DocumentOnLoadCompletedInMainFrame() override; |
| void WebContentsDestroyed() override; |
| void WasHidden() override; |
| + void WasShown() override; |
| + |
| + // Notifies that the tab of the associated WebContents will (most probably) be |
| + // closed. This call is expected to always happen before the one to WasHidden. |
| + void WillCloseTab(); |
| // SnapshotController::Client |
| void StartSnapshot() override; |
| @@ -144,6 +149,10 @@ class RecentTabHelper |
| // current page being loaded. |
| bool last_n_listen_to_tab_hidden_ = false; |
| + // Set to true when the tab containing the associated WebContents is in the |
| + // process of being closed. |
| + bool tab_is_closing = false; |
|
Dmitry Titov
2017/02/24 01:49:38
Nit: add "_" at the end of the name.
carlosk
2017/02/24 02:06:35
Done.
|
| + |
| base::WeakPtrFactory<RecentTabHelper> weak_ptr_factory_; |
| DISALLOW_COPY_AND_ASSIGN(RecentTabHelper); |