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

Side by Side Diff: ios/web/public/navigation_item_list.h

Issue 2671773005: Updated CRWSessionController interface to use NavigationItems. (Closed)
Patch Set: self review 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
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_WEB_PUBLIC_NAVIGATION_ITEM_LIST_H_
6 #define IOS_WEB_PUBLIC_NAVIGATION_ITEM_LIST_H_
7
8 #include <memory>
9 #include <vector>
10
11 namespace web {
12
13 class NavigationItem;
14
15 // Convenience typedef for a list of raw NavigationItem pointers.
16 typedef std::vector<NavigationItem*> NavigationItemList;
Eugene But (OOO till 7-30) 2017/02/03 23:33:33 Is there a value in having this typedef? It does n
kkhorimoto 2017/02/04 02:45:31 This is mostly for convenience because the actual
kkhorimoto 2017/02/04 02:45:31 Additionally, I modeled this typedef after Redirec
Eugene But (OOO till 7-30) 2017/02/04 03:34:51 Shouldn't we optimize code for reading and not for
17
18 // Convenience typedef for a list of scoped NavigationItem pointers.
19 typedef std::vector<std::unique_ptr<NavigationItem>> ScopedNavigationItemList;
Eugene But (OOO till 7-30) 2017/02/03 23:33:33 ditto
20
21 // Returns a NavigationItemList populated with raw pointer values from
22 // |scoped_list|.
23 NavigationItemList CreateUnscopedNavigationItemList(
24 const ScopedNavigationItemList& scoped_list);
25
26 } // namespace web
27
28 #endif // IOS_WEB_PUBLIC_NAVIGATION_ITEM_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698