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

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

Issue 2687303003: Convert some of TabModel logic to WebStateListObservers. (Closed)
Patch Set: Rebase. Created 3 years, 10 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_model.mm ('k') | ios/chrome/browser/tabs/tab_model_observers_bridge.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_observers_bridge.h
diff --git a/ios/chrome/browser/tabs/tab_model_observers_bridge.h b/ios/chrome/browser/tabs/tab_model_observers_bridge.h
new file mode 100644
index 0000000000000000000000000000000000000000..d1f7242f410e311de1f7b2bf1321f012f6f48ca5
--- /dev/null
+++ b/ios/chrome/browser/tabs/tab_model_observers_bridge.h
@@ -0,0 +1,24 @@
+// 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_OBSERVERS_BRIDGE_H_
+#define IOS_CHROME_BROWSER_TABS_TAB_MODEL_OBSERVERS_BRIDGE_H_
+
+#import "ios/shared/chrome/browser/tabs/web_state_list_observer_bridge.h"
+
+@class TabModel;
+@class TabModelObservers;
+
+// Bridge WebStateListObserver events to TabModelObservers.
+@interface TabModelObserversBridge : NSObject<WebStateListObserving>
+
+- (instancetype)initWithTabModel:(TabModel*)tabModel
+ tabModelObservers:(TabModelObservers*)tabModelObservers
+ NS_DESIGNATED_INITIALIZER;
+
+- (instancetype)init NS_UNAVAILABLE;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_TABS_TAB_MODEL_OBSERVERS_BRIDGE_H_
« no previous file with comments | « ios/chrome/browser/tabs/tab_model.mm ('k') | ios/chrome/browser/tabs/tab_model_observers_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698