OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |