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

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

Issue 2745873002: Created NavigationManager::CopyStateFromAndPrune(). (Closed)
Patch Set: Added no-op tests, addressed Eugene's 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 bool RemoveItemAtIndex(int index) override; 137 bool RemoveItemAtIndex(int index) override;
138 bool CanGoBack() const override; 138 bool CanGoBack() const override;
139 bool CanGoForward() const override; 139 bool CanGoForward() const override;
140 bool CanGoToOffset(int offset) const override; 140 bool CanGoToOffset(int offset) const override;
141 void GoBack() override; 141 void GoBack() override;
142 void GoForward() override; 142 void GoForward() override;
143 void GoToIndex(int index) override; 143 void GoToIndex(int index) override;
144 void Reload(ReloadType reload_type, bool check_for_reposts) override; 144 void Reload(ReloadType reload_type, bool check_for_reposts) override;
145 NavigationItemList GetBackwardItems() const override; 145 NavigationItemList GetBackwardItems() const override;
146 NavigationItemList GetForwardItems() const override; 146 NavigationItemList GetForwardItems() const override;
147 void CopyStateFromAndPrune(const NavigationManager* source) override;
148 bool CanPruneAllButLastCommittedItem() const override;
147 void OverrideDesktopUserAgentForNextPendingItem() override; 149 void OverrideDesktopUserAgentForNextPendingItem() override;
148 150
149 // Returns the current list of transient url rewriters, passing ownership to 151 // Returns the current list of transient url rewriters, passing ownership to
150 // the caller. 152 // the caller.
151 // TODO(crbug.com/546197): remove once NavigationItem creation occurs in this 153 // TODO(crbug.com/546197): remove once NavigationItem creation occurs in this
152 // class. 154 // class.
153 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> 155 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>>
154 GetTransientURLRewriters(); 156 GetTransientURLRewriters();
155 157
156 // Called to reset the transient url rewriter list. 158 // Called to reset the transient url rewriter list.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // List of transient url rewriters added by |AddTransientURLRewriter()|. 200 // List of transient url rewriters added by |AddTransientURLRewriter()|.
199 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> 201 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>>
200 transient_url_rewriters_; 202 transient_url_rewriters_;
201 203
202 DISALLOW_COPY_AND_ASSIGN(NavigationManagerImpl); 204 DISALLOW_COPY_AND_ASSIGN(NavigationManagerImpl);
203 }; 205 };
204 206
205 } // namespace web 207 } // namespace web
206 208
207 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ 209 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698