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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
114 NavigationItem* GetVisibleItem() const override; | 114 NavigationItem* GetVisibleItem() const override; |
115 NavigationItem* GetLastCommittedItem() const override; | 115 NavigationItem* GetLastCommittedItem() const override; |
116 NavigationItem* GetPendingItem() const override; | 116 NavigationItem* GetPendingItem() const override; |
117 NavigationItem* GetTransientItem() const override; | 117 NavigationItem* GetTransientItem() const override; |
118 void DiscardNonCommittedItems() override; | 118 void DiscardNonCommittedItems() override; |
119 void LoadURLWithParams(const NavigationManager::WebLoadParams&) override; | 119 void LoadURLWithParams(const NavigationManager::WebLoadParams&) override; |
120 void AddTransientURLRewriter( | 120 void AddTransientURLRewriter( |
121 BrowserURLRewriter::URLRewriter rewriter) override; | 121 BrowserURLRewriter::URLRewriter rewriter) override; |
122 int GetItemCount() const override; | 122 int GetItemCount() const override; |
123 NavigationItem* GetItemAtIndex(size_t index) const override; | 123 NavigationItem* GetItemAtIndex(size_t index) const override; |
124 int GetIndexOfItem(const NavigationItem* item) const override; | |
Eugene But (OOO till 7-30)
2017/06/02 18:08:08
Please add tests
kkhorimoto
2017/06/02 18:28:58
Done.
| |
124 int GetPendingItemIndex() const override; | 125 int GetPendingItemIndex() const override; |
125 int GetLastCommittedItemIndex() const override; | 126 int GetLastCommittedItemIndex() const override; |
126 bool RemoveItemAtIndex(int index) override; | 127 bool RemoveItemAtIndex(int index) override; |
127 bool CanGoBack() const override; | 128 bool CanGoBack() const override; |
128 bool CanGoForward() const override; | 129 bool CanGoForward() const override; |
129 bool CanGoToOffset(int offset) const override; | 130 bool CanGoToOffset(int offset) const override; |
130 void GoBack() override; | 131 void GoBack() override; |
131 void GoForward() override; | 132 void GoForward() override; |
132 void GoToIndex(int index) override; | 133 void GoToIndex(int index) override; |
133 void Reload(ReloadType reload_type, bool check_for_reposts) override; | 134 void Reload(ReloadType reload_type, bool check_for_reposts) override; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
179 // List of transient url rewriters added by |AddTransientURLRewriter()|. | 180 // List of transient url rewriters added by |AddTransientURLRewriter()|. |
180 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> | 181 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> |
181 transient_url_rewriters_; | 182 transient_url_rewriters_; |
182 | 183 |
183 DISALLOW_COPY_AND_ASSIGN(NavigationManagerImpl); | 184 DISALLOW_COPY_AND_ASSIGN(NavigationManagerImpl); |
184 }; | 185 }; |
185 | 186 |
186 } // namespace web | 187 } // namespace web |
187 | 188 |
188 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ | 189 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ |
OLD | NEW |