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

Side by Side Diff: ios/chrome/browser/web/navigation_manager_util.h

Issue 2756483006: Adds NavigationManager util functions to ios/chrome/browser/web/ (Closed)
Patch Set: added dependencies to BUILD.gn Created 3 years, 9 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_BROWSER_WEB_NAVIGATION_MANAGER_UTIL_H_
6 #define IOS_CHROME_BROWSER_WEB_NAVIGATION_MANAGER_UTIL_H_
7
8 #import "ios/web/public/navigation_item.h"
9 #import "ios/web/public/navigation_manager.h"
10
11 // Utility functions built on web::NavigationManager public API.
12
13 // Returns the most recent navigation item that is not the result of an HTTP
14 // Redirect. Returns nullptr if |nav_manager| is empty or the first item if
Eugene But (OOO till 7-30) 2017/03/17 14:32:04 It's quite unexpected that GetLastNonRedirectedIte
kkhorimoto 2017/03/17 17:16:58 The only use case of |-lastUserItem| was for reloa
pkl (ping after 24h if needed) 2017/03/17 20:23:52 Acknowledged.
pkl (ping after 24h if needed) 2017/03/17 20:23:53 I'm inclined to preserve the existing behavior and
15 // all items are redirects.
16 web::NavigationItem* GetLastNonRedirectedItem(
17 web::NavigationManager* nav_manager);
18
19 #endif // IOS_CHROME_BROWSER_WEB_NAVIGATION_MANAGER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698