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

Unified Diff: ios/web/navigation/navigation_item_impl_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 side-by-side diff with in-line comments
Download patch
Index: ios/web/navigation/navigation_item_impl_list.h
diff --git a/ios/web/navigation/navigation_item_impl_list.h b/ios/web/navigation/navigation_item_impl_list.h
new file mode 100644
index 0000000000000000000000000000000000000000..432f37b9b38a5c9d521172df765e4e8122d72fcb
--- /dev/null
+++ b/ios/web/navigation/navigation_item_impl_list.h
@@ -0,0 +1,29 @@
+// 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_NAVIGATION_NAVIGATION_ITEM_IMPL_LIST_H_
+#define IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_LIST_H_
+
+#import "ios/web/public/navigation_item_list.h"
+
+namespace web {
+
+class NavigationItemImpl;
+
+// Convenience typedef for a list of raw NavigationItem pointers.
+typedef std::vector<NavigationItemImpl*> NavigationItemImplList;
+
+// Convenience typedef for a list of scoped NavigationItem pointers.
+typedef std::vector<std::unique_ptr<NavigationItemImpl>>
+ ScopedNavigationItemImplList;
+
+// Creates a ScopedNavigationItemImplList from |scoped_item_list|. Ownership
+// of the NavigationItems in |scoped_item_list| is transferred to the returned
+// value.
+ScopedNavigationItemImplList CreateScopedNavigationItemImplList(
Eugene But (OOO till 7-30) 2017/02/03 23:33:33 Is this used anywhere?
kkhorimoto 2017/02/04 02:45:30 It's used in my subsequent CL to convert the Scope
+ ScopedNavigationItemList scoped_item_list);
+
+} // namespace web
+
+#endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_IMPL_LIST_H_

Powered by Google App Engine
This is Rietveld 408576698