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

Unified Diff: ios/chrome/browser/tabs/tab_model_closing_web_state_observer.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
Index: ios/chrome/browser/tabs/tab_model_closing_web_state_observer.h
diff --git a/ios/chrome/browser/tabs/tab_model_closing_web_state_observer.h b/ios/chrome/browser/tabs/tab_model_closing_web_state_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..a6e3158d03649a3488fd5d24121824f3dc452377
--- /dev/null
+++ b/ios/chrome/browser/tabs/tab_model_closing_web_state_observer.h
@@ -0,0 +1,28 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_TABS_TAB_MODEL_CLOSING_WEB_STATE_OBSERVER_H_
+#define IOS_CHROME_BROWSER_TABS_TAB_MODEL_CLOSING_WEB_STATE_OBSERVER_H_
+
+#import <Foundation/Foundation.h>
+
+#import "ios/shared/chrome/browser/tabs/web_state_list_observer_bridge.h"
+
+@class TabModel;
+namespace sessions {
+class TabRestoreService;
+}
+
+// Observes WebStateList events about closing WebState.
+@interface TabModelClosingWebStateObserver : NSObject<WebStateListObserving>
+
+- (instancetype)initWithTabModel:(TabModel*)tabModel
+ restoreService:(sessions::TabRestoreService*)restoreService
+ NS_DESIGNATED_INITIALIZER;
+
+- (instancetype)init NS_UNAVAILABLE;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_TABS_TAB_MODEL_CLOSING_WEB_STATE_OBSERVER_H_
« no previous file with comments | « ios/chrome/browser/tabs/tab_model.mm ('k') | ios/chrome/browser/tabs/tab_model_closing_web_state_observer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698