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

Side by Side Diff: ios/web/navigation/navigation_manager_impl.h

Issue 2724073005: Remove NavigationManager::GetPreviousItem(). (Closed)
Patch Set: Address comments. 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ 5 #ifndef IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_
6 #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ 6 #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void AddPendingItem(const GURL& url, 103 void AddPendingItem(const GURL& url,
104 const web::Referrer& referrer, 104 const web::Referrer& referrer,
105 ui::PageTransition navigation_type, 105 ui::PageTransition navigation_type,
106 NavigationInitiationType initiation_type); 106 NavigationInitiationType initiation_type);
107 107
108 // Convenience accessors to get the underlying NavigationItems from the 108 // Convenience accessors to get the underlying NavigationItems from the
109 // SessionEntries returned from |session_controller_|'s -lastUserEntry and 109 // SessionEntries returned from |session_controller_|'s -lastUserEntry and
110 // -previousEntry methods. 110 // -previousEntry methods.
111 // TODO(crbug.com/546365): Remove these methods. 111 // TODO(crbug.com/546365): Remove these methods.
112 NavigationItem* GetLastUserItem() const; 112 NavigationItem* GetLastUserItem() const;
113 NavigationItem* GetPreviousItem() const;
114 113
115 // Temporary method. Returns a vector of NavigationItems corresponding to 114 // Temporary method. Returns a vector of NavigationItems corresponding to
116 // the SessionEntries of the uderlying CRWSessionController. 115 // the SessionEntries of the uderlying CRWSessionController.
117 // TODO(crbug.com/546365): Remove this method. 116 // TODO(crbug.com/546365): Remove this method.
118 NavigationItemList GetItems() const; 117 NavigationItemList GetItems() const;
119 118
120 // NavigationManager: 119 // NavigationManager:
121 BrowserState* GetBrowserState() const override; 120 BrowserState* GetBrowserState() const override;
122 WebState* GetWebState() const override; 121 WebState* GetWebState() const override;
123 NavigationItem* GetVisibleItem() const override; 122 NavigationItem* GetVisibleItem() const override;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // List of transient url rewriters added by |AddTransientURLRewriter()|. 199 // List of transient url rewriters added by |AddTransientURLRewriter()|.
201 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> 200 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>>
202 transient_url_rewriters_; 201 transient_url_rewriters_;
203 202
204 DISALLOW_COPY_AND_ASSIGN(NavigationManagerImpl); 203 DISALLOW_COPY_AND_ASSIGN(NavigationManagerImpl);
205 }; 204 };
206 205
207 } // namespace web 206 } // namespace web
208 207
209 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ 208 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « ios/web/navigation/crw_session_controller.mm ('k') | ios/web/navigation/navigation_manager_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698