| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void AddTransientURLRewriter( | 105 void AddTransientURLRewriter( |
| 106 BrowserURLRewriter::URLRewriter rewriter) override; | 106 BrowserURLRewriter::URLRewriter rewriter) override; |
| 107 int GetItemCount() const override; | 107 int GetItemCount() const override; |
| 108 NavigationItem* GetItemAtIndex(size_t index) const override; | 108 NavigationItem* GetItemAtIndex(size_t index) const override; |
| 109 int GetCurrentItemIndex() const override; | 109 int GetCurrentItemIndex() const override; |
| 110 int GetPendingItemIndex() const override; | 110 int GetPendingItemIndex() const override; |
| 111 int GetLastCommittedItemIndex() const override; | 111 int GetLastCommittedItemIndex() const override; |
| 112 bool RemoveItemAtIndex(int index) override; | 112 bool RemoveItemAtIndex(int index) override; |
| 113 bool CanGoBack() const override; | 113 bool CanGoBack() const override; |
| 114 bool CanGoForward() const override; | 114 bool CanGoForward() const override; |
| 115 bool CanGoToOffset(int offset) const override; |
| 115 void GoBack() override; | 116 void GoBack() override; |
| 116 void GoForward() override; | 117 void GoForward() override; |
| 117 void GoToIndex(int index) override; | 118 void GoToIndex(int index) override; |
| 118 void Reload(bool check_for_reposts) override; | 119 void Reload(bool check_for_reposts) override; |
| 119 | 120 |
| 120 // Returns the current list of transient url rewriters, passing ownership to | 121 // Returns the current list of transient url rewriters, passing ownership to |
| 121 // the caller. | 122 // the caller. |
| 122 // TODO(crbug.com/546197): remove once NavigationItem creation occurs in this | 123 // TODO(crbug.com/546197): remove once NavigationItem creation occurs in this |
| 123 // class. | 124 // class. |
| 124 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> | 125 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 148 // List of transient url rewriters added by |AddTransientURLRewriter()|. | 149 // List of transient url rewriters added by |AddTransientURLRewriter()|. |
| 149 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> | 150 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> |
| 150 transient_url_rewriters_; | 151 transient_url_rewriters_; |
| 151 | 152 |
| 152 DISALLOW_COPY_AND_ASSIGN(NavigationManagerImpl); | 153 DISALLOW_COPY_AND_ASSIGN(NavigationManagerImpl); |
| 153 }; | 154 }; |
| 154 | 155 |
| 155 } // namespace web | 156 } // namespace web |
| 156 | 157 |
| 157 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ | 158 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ |
| OLD | NEW |