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

Side by Side Diff: ios/chrome/browser/tabs/tab.h

Issue 2807843002: Refactor creation of SadTabView into a tab helper object (Closed)
Patch Set: Attempt to fix build dependency 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 unified diff | Download patch
« no previous file with comments | « ios/chrome/browser/tabs/BUILD.gn ('k') | ios/chrome/browser/tabs/tab.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_TABS_TAB_H_ 5 #ifndef IOS_CHROME_BROWSER_TABS_TAB_H_
6 #define IOS_CHROME_BROWSER_TABS_TAB_H_ 6 #define IOS_CHROME_BROWSER_TABS_TAB_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #import "components/signin/ios/browser/manage_accounts_delegate.h" 13 #import "components/signin/ios/browser/manage_accounts_delegate.h"
14 #import "ios/chrome/browser/web/sad_tab_tab_helper_delegate.h"
14 #include "ios/net/request_tracker.h" 15 #include "ios/net/request_tracker.h"
15 #import "ios/web/public/web_state/ui/crw_web_delegate.h" 16 #import "ios/web/public/web_state/ui/crw_web_delegate.h"
16 #include "ui/base/page_transition_types.h" 17 #include "ui/base/page_transition_types.h"
17 18
18 @class AutofillController; 19 @class AutofillController;
19 @class AutoReloadBridge; 20 @class AutoReloadBridge;
20 @class CastController; 21 @class CastController;
21 @protocol CRWNativeContentProvider; 22 @protocol CRWNativeContentProvider;
22 @class CRWWebController; 23 @class CRWWebController;
23 @class ExternalAppLauncher; 24 @class ExternalAppLauncher;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 89
89 // The header name and value for the data reduction proxy to request an image to 90 // The header name and value for the data reduction proxy to request an image to
90 // be reloaded without optimizations. 91 // be reloaded without optimizations.
91 extern NSString* const kProxyPassthroughHeaderName; 92 extern NSString* const kProxyPassthroughHeaderName;
92 extern NSString* const kProxyPassthroughHeaderValue; 93 extern NSString* const kProxyPassthroughHeaderValue;
93 94
94 // Information related to a single tab. The CRWWebController is similar to 95 // Information related to a single tab. The CRWWebController is similar to
95 // desktop Chrome's TabContents in that it encapsulates rendering. Acts as the 96 // desktop Chrome's TabContents in that it encapsulates rendering. Acts as the
96 // delegate for the CRWWebController in order to process info about pages having 97 // delegate for the CRWWebController in order to process info about pages having
97 // loaded. 98 // loaded.
98 @interface Tab : NSObject<CRWWebDelegate, ManageAccountsDelegate> 99 @interface Tab
100 : NSObject<CRWWebDelegate, ManageAccountsDelegate, SadTabTabHelperDelegate>
99 101
100 // Browser state associated with this Tab. 102 // Browser state associated with this Tab.
101 @property(nonatomic, readonly) ios::ChromeBrowserState* browserState; 103 @property(nonatomic, readonly) ios::ChromeBrowserState* browserState;
102 104
103 // TODO(crbug.com/546208): Eliminate this; replace calls with either visible URL 105 // TODO(crbug.com/546208): Eliminate this; replace calls with either visible URL
104 // or last committed URL, depending on the specific use case. 106 // or last committed URL, depending on the specific use case.
105 // Do not add new calls to this method. 107 // Do not add new calls to this method.
106 @property(nonatomic, readonly) const GURL& url; 108 @property(nonatomic, readonly) const GURL& url;
107 109
108 // The Passkit Dialog provider used to show the UI to download a passkit object. 110 // The Passkit Dialog provider used to show the UI to download a passkit object.
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 // Evaluates U2F result. 347 // Evaluates U2F result.
346 - (void)evaluateU2FResultFromURL:(const GURL&)url; 348 - (void)evaluateU2FResultFromURL:(const GURL&)url;
347 349
348 // Cancels prerendering. It is an error to call this on anything except a 350 // Cancels prerendering. It is an error to call this on anything except a
349 // prerender tab (where |isPrerenderTab| is set to YES). 351 // prerender tab (where |isPrerenderTab| is set to YES).
350 - (void)discardPrerender; 352 - (void)discardPrerender;
351 353
352 @end 354 @end
353 355
354 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ 356 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/tabs/BUILD.gn ('k') | ios/chrome/browser/tabs/tab.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698