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

Unified Diff: ios/web/public/navigation_item_list.h

Issue 2672723003: Converted CRWSessionController to use NavigationItems. (Closed)
Patch Set: test fixes, self review Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/net/crw_ssl_status_updater_unittest.mm ('k') | ios/web/public/navigation_item_list.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/navigation_item_list.h
diff --git a/ios/web/public/navigation_item_list.h b/ios/web/public/navigation_item_list.h
new file mode 100644
index 0000000000000000000000000000000000000000..b8ee4b6f27ecc9c830f708fb222b5055edb6f2b8
--- /dev/null
+++ b/ios/web/public/navigation_item_list.h
@@ -0,0 +1,28 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_PUBLIC_NAVIGATION_ITEM_LIST_H_
+#define IOS_WEB_PUBLIC_NAVIGATION_ITEM_LIST_H_
+
+#include <memory>
+#include <vector>
+
+namespace web {
+
+class NavigationItem;
+
+// Convenience typedef for a list of raw NavigationItem pointers.
+typedef std::vector<NavigationItem*> NavigationItemList;
+
+// Convenience typedef for a list of scoped NavigationItem pointers.
+typedef std::vector<std::unique_ptr<NavigationItem>> ScopedNavigationItemList;
+
+// Returns a NavigationItemList populated with raw pointer values from
+// |scoped_list|.
+NavigationItemList CreateUnscopedNavigationItemList(
+ const ScopedNavigationItemList& scoped_list);
+
+} // namespace web
+
+#endif // IOS_WEB_PUBLIC_NAVIGATION_ITEM_LIST_H_
« no previous file with comments | « ios/web/net/crw_ssl_status_updater_unittest.mm ('k') | ios/web/public/navigation_item_list.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698