| OLD | NEW |
| 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 Loading... |
| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // List of transient url rewriters added by |AddTransientURLRewriter()|. | 195 // List of transient url rewriters added by |AddTransientURLRewriter()|. |
| 197 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> | 196 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> |
| 198 transient_url_rewriters_; | 197 transient_url_rewriters_; |
| 199 | 198 |
| 200 DISALLOW_COPY_AND_ASSIGN(NavigationManagerImpl); | 199 DISALLOW_COPY_AND_ASSIGN(NavigationManagerImpl); |
| 201 }; | 200 }; |
| 202 | 201 |
| 203 } // namespace web | 202 } // namespace web |
| 204 | 203 |
| 205 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ | 204 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ |
| OLD | NEW |