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

Unified Diff: ios/chrome/browser/tabs/tab_model.h

Issue 2775623002: [ios] WebStateList owns all WebState it manages. (Closed)
Patch Set: Fix gn check Created 3 years, 8 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 | « ios/chrome/browser/tabs/tab_lifecycle.md ('k') | ios/chrome/browser/tabs/tab_model.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/tabs/tab_model.h
diff --git a/ios/chrome/browser/tabs/tab_model.h b/ios/chrome/browser/tabs/tab_model.h
index c7e20413c70a472089b9722da6129cbe077c3f03..0879a9c77582dd655258b48c936abe350b0d5306 100644
--- a/ios/chrome/browser/tabs/tab_model.h
+++ b/ios/chrome/browser/tabs/tab_model.h
@@ -195,27 +195,12 @@ NSUInteger const kTabPositionAutomatically = NSNotFound;
atIndex:(NSUInteger)index
inBackground:(BOOL)inBackground;
-// Inserts a new tab at the given |index| with the session history specified by
-// |webState|. Does not go through the order controller as this is generally
-// used only for restoring a previous session and the index is fixed.
-- (Tab*)insertTabWithWebState:(std::unique_ptr<web::WebState>)webState
- atIndex:(NSUInteger)index;
-
-// Inserts |tab| at the given |index|. Broadcasts the proper notifications about
-// the change. The receiver should be set as the parentTabModel for |tab|; this
-// method doesn't check that.
-- (void)insertTab:(Tab*)tab atIndex:(NSUInteger)index;
-
// Moves |tab| to the given |index|. |index| must be valid for this tab model
// (must be less than the current number of tabs). |tab| must already be in this
// tab model. If |tab| is already at |index|, this method does nothing and will
// not notify observers.
- (void)moveTab:(Tab*)tab toIndex:(NSUInteger)index;
-// Replaces |oldTab| in the model with |newTab|. Closes the oldTab when
-// replacing it in the model.
-- (void)replaceTab:(Tab*)oldTab withTab:(Tab*)newTab;
-
// Closes the tab at the given |index|. |index| must be valid.
- (void)closeTabAtIndex:(NSUInteger)index;
@@ -269,8 +254,6 @@ NSUInteger const kTabPositionAutomatically = NSNotFound;
// At this point the tab model will no longer ever be active, and will likely be
// deallocated soon.
- (void)browserStateDestroyed;
-// Called by the Tab to inform its parent that it has been closed.
-- (void)didCloseTab:(Tab*)closedTab;
// Called by |tab| to inform the model that a navigation has taken place.
// TODO(crbug.com/661983): once more of the navigation state has moved into WC,
// replace this with WebStateObserver.
« no previous file with comments | « ios/chrome/browser/tabs/tab_lifecycle.md ('k') | ios/chrome/browser/tabs/tab_model.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698