Index: ios/shared/chrome/browser/tabs/web_state_list_delegate.h |
diff --git a/ios/shared/chrome/browser/tabs/web_state_list_delegate.h b/ios/shared/chrome/browser/tabs/web_state_list_delegate.h |
index c1968bb1d6a474ed1b66b0723f52fa5b576cd93e..a2fc458ecdd36b1776c792e3d9d08d982beeeb98 100644 |
--- a/ios/shared/chrome/browser/tabs/web_state_list_delegate.h |
+++ b/ios/shared/chrome/browser/tabs/web_state_list_delegate.h |
@@ -23,6 +23,11 @@ class WebStateListDelegate { |
// to do any preparation that it deems necessary. |
virtual void WillAddWebState(web::WebState* web_state) = 0; |
+ // Notifies the delegate that the specified WebState has been detached from |
+ // the WebStateList (via detaching/closing/replacing existing) and allows it |
+ // to do any clean up that it deems necessary. |
+ virtual void WebStateDetached(web::WebState* web_state) = 0; |
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(WebStateListDelegate); |
}; |