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

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

Issue 2694263004: Removed CRWSessionEntry from Tab's interface. (Closed)
Patch Set: remove unused function 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 unified diff | Download patch
« no previous file with comments | « no previous file | 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 #include "ios/net/request_tracker.h" 14 #include "ios/net/request_tracker.h"
15 #import "ios/web/public/web_state/ui/crw_web_delegate.h" 15 #import "ios/web/public/web_state/ui/crw_web_delegate.h"
16 #include "ui/base/page_transition_types.h" 16 #include "ui/base/page_transition_types.h"
17 17
18 @class AutofillController; 18 @class AutofillController;
19 @class AutoReloadBridge; 19 @class AutoReloadBridge;
20 @class CastController; 20 @class CastController;
21 @protocol CRWNativeContentProvider; 21 @protocol CRWNativeContentProvider;
22 @class CRWSessionEntry;
23 @class CRWWebController; 22 @class CRWWebController;
24 @class ExternalAppLauncher; 23 @class ExternalAppLauncher;
25 @class FormInputAccessoryViewController; 24 @class FormInputAccessoryViewController;
26 @class FullScreenController; 25 @class FullScreenController;
27 @protocol FullScreenControllerDelegate; 26 @protocol FullScreenControllerDelegate;
28 class GURL; 27 class GURL;
29 @class NativeAppNavigationController; 28 @class NativeAppNavigationController;
30 @class OpenInController; 29 @class OpenInController;
31 @class OverscrollActionsController; 30 @class OverscrollActionsController;
32 @protocol OverscrollActionsControllerDelegate; 31 @protocol OverscrollActionsControllerDelegate;
(...skipping 17 matching lines...) Expand all
50 namespace ios { 49 namespace ios {
51 class ChromeBrowserState; 50 class ChromeBrowserState;
52 } 51 }
53 52
54 namespace sessions { 53 namespace sessions {
55 class SerializedNavigationEntry; 54 class SerializedNavigationEntry;
56 struct SessionTab; 55 struct SessionTab;
57 } 56 }
58 57
59 namespace web { 58 namespace web {
59 class NavigationItem;
60 class NavigationManagerImpl; 60 class NavigationManagerImpl;
61 struct Referrer; 61 struct Referrer;
62 class WebState; 62 class WebState;
63 } 63 }
64 64
65 // Notification sent by a Tab when it starts to load a new URL. This 65 // Notification sent by a Tab when it starts to load a new URL. This
66 // notification must only be used for crash reporting as it is also sent for 66 // notification must only be used for crash reporting as it is also sent for
67 // pre-rendered tabs. 67 // pre-rendered tabs.
68 extern NSString* const kTabUrlStartedLoadingNotificationForCrashReporting; 68 extern NSString* const kTabUrlStartedLoadingNotificationForCrashReporting;
69 69
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // Returns the NavigationManager for this tab's WebState. Requires WebState to 239 // Returns the NavigationManager for this tab's WebState. Requires WebState to
240 // be populated. Can return null. 240 // be populated. Can return null.
241 - (web::NavigationManagerImpl*)navigationManager; 241 - (web::NavigationManagerImpl*)navigationManager;
242 242
243 // Update the tab's history by replacing all previous navigations with 243 // Update the tab's history by replacing all previous navigations with
244 // |navigations|. 244 // |navigations|.
245 - (void)replaceHistoryWithNavigations: 245 - (void)replaceHistoryWithNavigations:
246 (const std::vector<sessions::SerializedNavigationEntry>&)navigations 246 (const std::vector<sessions::SerializedNavigationEntry>&)navigations
247 currentIndex:(NSInteger)currentIndex; 247 currentIndex:(NSInteger)currentIndex;
248 248
249 // Navigate forwards or backwards to |entry|. 249 // Navigate forwards or backwards to |item|.
250 - (void)goToEntry:(CRWSessionEntry*)entry; 250 - (void)goToItem:(const web::NavigationItem*)item;
251 - (void)reload; 251 - (void)reload;
252 252
253 // Navigates forwards or backwards. 253 // Navigates forwards or backwards.
254 // TODO(crbug.com/661664): These are passthroughs to CRWWebController. Convert 254 // TODO(crbug.com/661664): These are passthroughs to CRWWebController. Convert
255 // all callers and remove these methods. 255 // all callers and remove these methods.
256 - (void)goBack; 256 - (void)goBack;
257 - (void)goForward; 257 - (void)goForward;
258 258
259 // Records the state (scroll position, form values, whatever can be 259 // Records the state (scroll position, form values, whatever can be
260 // harvested) from the current page into the current session entry. 260 // harvested) from the current page into the current session entry.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 // Called when this tab is hidden. 337 // Called when this tab is hidden.
338 - (void)wasHidden; 338 - (void)wasHidden;
339 339
340 // Evaluates U2F result. 340 // Evaluates U2F result.
341 - (void)evaluateU2FResultFromURL:(const GURL&)url; 341 - (void)evaluateU2FResultFromURL:(const GURL&)url;
342 342
343 @end 343 @end
344 344
345 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ 345 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/tabs/tab.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698