| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PRIVATE_H_ | 5 #ifndef IOS_CHROME_BROWSER_TABS_TAB_PRIVATE_H_ |
| 6 #define IOS_CHROME_BROWSER_TABS_TAB_PRIVATE_H_ | 6 #define IOS_CHROME_BROWSER_TABS_TAB_PRIVATE_H_ |
| 7 | 7 |
| 8 #include "ios/net/request_tracker.h" | 8 #include "ios/net/request_tracker.h" |
| 9 | 9 |
| 10 namespace web { | 10 namespace web { |
| 11 class NavigationItem; |
| 11 class WebStateImpl; | 12 class WebStateImpl; |
| 12 } | 13 } |
| 13 | 14 |
| 14 // Exposed private methods for testing purpose. | 15 // Exposed private methods for testing purpose. |
| 15 @interface Tab () | 16 @interface Tab () |
| 16 | 17 |
| 17 - (OpenInController*)openInController; | 18 - (OpenInController*)openInController; |
| 18 - (void)closeThisTab; | 19 - (void)closeThisTab; |
| 19 - (CRWSessionEntry*)currentSessionEntry; | 20 - (web::NavigationItem*)currentNavigationItem; |
| 20 - (void)setShouldObserveInfoBarManager:(BOOL)shouldObserveInfoBarManager; | 21 - (void)setShouldObserveInfoBarManager:(BOOL)shouldObserveInfoBarManager; |
| 21 - (void)setShouldObserveFaviconChanges:(BOOL)shouldObserveFaviconChanges; | 22 - (void)setShouldObserveFaviconChanges:(BOOL)shouldObserveFaviconChanges; |
| 22 | 23 |
| 23 @end | 24 @end |
| 24 | 25 |
| 25 @interface Tab (TestingSupport) | 26 @interface Tab (TestingSupport) |
| 26 | 27 |
| 27 // Replaces the existing |externalAppLauncher_|. | 28 // Replaces the existing |externalAppLauncher_|. |
| 28 - (void)replaceExternalAppLauncher:(id)externalAppLauncher; | 29 - (void)replaceExternalAppLauncher:(id)externalAppLauncher; |
| 29 | 30 |
| 30 - (TabModel*)parentTabModel; | 31 - (TabModel*)parentTabModel; |
| 31 | 32 |
| 32 - (FormInputAccessoryViewController*)inputAccessoryViewController; | 33 - (FormInputAccessoryViewController*)inputAccessoryViewController; |
| 33 | 34 |
| 34 @end | 35 @end |
| 35 | 36 |
| 36 #endif // IOS_CHROME_BROWSER_TABS_TAB_PRIVATE_H_ | 37 #endif // IOS_CHROME_BROWSER_TABS_TAB_PRIVATE_H_ |
| OLD | NEW |