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

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

Issue 2672953005: Updated ownership of NavigationItems within CRWSessionController. (Closed)
Patch Set: fix unittests 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 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_WEB_PUBLIC_NAVIGATION_ITEM_LIST_H_ 5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_ITEM_LIST_H_
6 #define IOS_WEB_PUBLIC_NAVIGATION_ITEM_LIST_H_ 6 #define IOS_WEB_PUBLIC_NAVIGATION_ITEM_LIST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 namespace web { 11 namespace web {
12 12
13 class NavigationItem; 13 class NavigationItem;
14 14
15 // Convenience typedef for a list of raw NavigationItem pointers. 15 // Convenience typedef for a list of raw NavigationItem pointers.
16 // TODO(crbug.com/689321): Clean up these typedefs. 16 // TODO(crbug.com/689321): Clean up these typedefs.
17 typedef std::vector<NavigationItem*> NavigationItemList; 17 typedef std::vector<NavigationItem*> NavigationItemList;
18 18
19 // Convenience typedef for a list of scoped NavigationItem pointers. 19 // Convenience typedef for a list of scoped NavigationItem pointers.
20 typedef std::vector<std::unique_ptr<NavigationItem>> ScopedNavigationItemList; 20 typedef std::vector<std::unique_ptr<NavigationItem>> ScopedNavigationItemList;
21 21
22 // Returns a NavigationItemList populated with raw pointer values from
23 // |scoped_list|.
24 NavigationItemList CreateRawNavigationItemList(
25 const ScopedNavigationItemList& scoped_list);
26
27 } // namespace web 22 } // namespace web
28 23
29 #endif // IOS_WEB_PUBLIC_NAVIGATION_ITEM_LIST_H_ 24 #endif // IOS_WEB_PUBLIC_NAVIGATION_ITEM_LIST_H_
OLDNEW
« no previous file with comments | « ios/web/navigation/navigation_manager_storage_builder.mm ('k') | ios/web/public/navigation_item_list.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698