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

Unified Diff: ios/shared/chrome/browser/tabs/web_state_list_delegate.h

Issue 2768093003: [ios] Extend WebStateListObserver amd WebStateListDelegate APIs. (Closed)
Patch Set: Remove duplicated method. Created 3 years, 9 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
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);
};
« no previous file with comments | « ios/shared/chrome/browser/tabs/web_state_list.mm ('k') | ios/shared/chrome/browser/tabs/web_state_list_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698