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

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

Issue 2789433006: Implement request mobile site. (Closed)
Patch Set: Address self review comments 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
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 #include "ios/web/public/user_agent.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 @class CRWWebController; 22 @class CRWWebController;
22 @class ExternalAppLauncher; 23 @class ExternalAppLauncher;
23 @class FormInputAccessoryViewController; 24 @class FormInputAccessoryViewController;
24 @class FullScreenController; 25 @class FullScreenController;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // Returns the infobars::InfoBarManager object for this tab. 232 // Returns the infobars::InfoBarManager object for this tab.
232 - (infobars::InfoBarManager*)infoBarManager; 233 - (infobars::InfoBarManager*)infoBarManager;
233 234
234 // Whether the content of the current tab is compatible with reader mode. 235 // Whether the content of the current tab is compatible with reader mode.
235 - (BOOL)canSwitchToReaderMode; 236 - (BOOL)canSwitchToReaderMode;
236 237
237 // Asks the tab to enter into reader mode, presenting a streamlined view of the 238 // Asks the tab to enter into reader mode, presenting a streamlined view of the
238 // current content. 239 // current content.
239 - (void)switchToReaderMode; 240 - (void)switchToReaderMode;
240 241
241 // Remove the UIWebView and reload the current url. Used by request desktop 242 // Removes the web view and loads the original url of the last non-redirect item
kkhorimoto 2017/04/11 01:09:41 We aren't removing the web view anymore, are we?
Eugene But (OOO till 7-30) 2017/04/11 02:11:56 In any case Tab should not make any assumptions ab
liaoyuke 2017/04/11 18:27:20 That is a very good point! Thanks!
liaoyuke 2017/04/11 18:27:20 Set |customUserAgent| property requires re-factori
242 // so the updated user agent is used. 243 // (including non-history items). Used by request desktop/mobile site so the
243 - (void)reloadForDesktopUserAgent; 244 // updated user agent is used.
245 - (void)reloadWithUserAgentType:(web::UserAgentType)userAgentType;
244 246
245 // Ensures the toolbar visibility matches |visible|. 247 // Ensures the toolbar visibility matches |visible|.
246 - (void)updateFullscreenWithToolbarVisible:(BOOL)visible; 248 - (void)updateFullscreenWithToolbarVisible:(BOOL)visible;
247 249
248 // Returns a snapshot of the current page, backed by disk so it can be purged 250 // Returns a snapshot of the current page, backed by disk so it can be purged
249 // and reloaded easily. The snapshot may be in memory, saved on disk or not 251 // and reloaded easily. The snapshot may be in memory, saved on disk or not
250 // present at all. 252 // present at all.
251 // 1) If the snapshot is in memory |block| will be called synchronously with 253 // 1) If the snapshot is in memory |block| will be called synchronously with
252 // the existing image. 254 // the existing image.
253 // 2) If the snapshot is saven on disk |block| will be called asynchronously 255 // 2) If the snapshot is saven on disk |block| will be called asynchronously
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 // Evaluates U2F result. 297 // Evaluates U2F result.
296 - (void)evaluateU2FResultFromURL:(const GURL&)url; 298 - (void)evaluateU2FResultFromURL:(const GURL&)url;
297 299
298 // Cancels prerendering. It is an error to call this on anything except a 300 // Cancels prerendering. It is an error to call this on anything except a
299 // prerender tab (where |isPrerenderTab| is set to YES). 301 // prerender tab (where |isPrerenderTab| is set to YES).
300 - (void)discardPrerender; 302 - (void)discardPrerender;
301 303
302 @end 304 @end
303 305
304 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_ 306 #endif // IOS_CHROME_BROWSER_TABS_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698