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

Unified Diff: ios/web/navigation/navigation_manager_impl.h

Issue 2779263002: Set user agent type of transient item the same as pending item. (Closed)
Patch Set: removed unused includes 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 side-by-side diff with in-line comments
Download patch
Index: ios/web/navigation/navigation_manager_impl.h
diff --git a/ios/web/navigation/navigation_manager_impl.h b/ios/web/navigation/navigation_manager_impl.h
index 9a4298674b0861990db2f5e3f10c384d424388be..f4bb6927b4c116757f1295336dc7e8c12b9376db 100644
--- a/ios/web/navigation/navigation_manager_impl.h
+++ b/ios/web/navigation/navigation_manager_impl.h
@@ -95,6 +95,10 @@ class NavigationManagerImpl : public NavigationManager {
const Referrer& referrer,
ui::PageTransition type);
+ // Adds a transient item with the given URL. A transient item will be
+ // discarded on any navigation.
+ void AddTransientItem(const GURL& url);
Eugene But (OOO till 7-30) 2017/03/30 23:01:49 Please add tests for this new method
liaoyuke 2017/03/31 15:50:12 Thank you for catching this!
+
// Adds a new item with the given url, referrer, navigation type, and
// initiation type, making it the pending item. If pending item is the same as
// the current item, this does nothing. |referrer| may be nil if there isn't

Powered by Google App Engine
This is Rietveld 408576698