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

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

Issue 2640093004: WebStateList is an array of web::WebState* wrappers. (Closed)
Patch Set: Created 3 years, 11 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.h
diff --git a/ios/chrome/browser/tabs/tab.h b/ios/chrome/browser/tabs/tab.h
index f1e97728c069646fd11ee36debd62777fc72ace6..0a9bf8c5bc90bc6f5eb2a9fc4bca859b81790d57 100644
--- a/ios/chrome/browser/tabs/tab.h
+++ b/ios/chrome/browser/tabs/tab.h
@@ -11,6 +11,7 @@
#include <vector>
#import "components/signin/ios/browser/manage_accounts_delegate.h"
+#import "ios/chrome/browser/tabs/web_state_handle.h"
#include "ios/net/request_tracker.h"
#import "ios/web/public/web_state/ui/crw_web_delegate.h"
#include "ui/base/page_transition_types.h"
@@ -63,7 +64,6 @@ namespace web {
class NavigationManagerImpl;
struct Referrer;
class WebState;
-class WebStateImpl;
}
// Notification sent by a Tab when it starts to load a new URL. This
@@ -98,7 +98,8 @@ extern NSString* const kProxyPassthroughHeaderValue;
// desktop Chrome's TabContents in that it encapsulates rendering. Acts as the
// delegate for the CRWWebController in order to process info about pages having
// loaded.
-@interface Tab : NSObject<CRWWebDelegate, ManageAccountsDelegate>
+@interface Tab
+ : NSObject<CRWWebDelegate, ManageAccountsDelegate, WebStateHandle>
// Browser state associated with this Tab.
@property(nonatomic, readonly) ios::ChromeBrowserState* browserState;
@@ -126,10 +127,6 @@ extern NSString* const kProxyPassthroughHeaderValue;
// |YES| if snapshot overlay should load from the grey image cache.
@property(nonatomic, assign) BOOL useGreyImageCache;
-// webStateImpl is deprecated: use webState instead.
-@property(nonatomic, readonly) web::WebStateImpl* webStateImpl;
-@property(nonatomic, readonly) web::WebState* webState;
-
@property(nonatomic, readonly) CRWWebController* webController;
@property(nonatomic, readonly) PasswordController* passwordController;
@property(nonatomic, readonly) BOOL canGoBack;

Powered by Google App Engine
This is Rietveld 408576698