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

Side by Side Diff: ios/web/public/test/fakes/test_navigation_manager.h

Issue 2779383002: implement user agent override option. (Closed)
Patch Set: Rebase Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_ 5 #ifndef IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_
6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_ 6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_
7 7
8 #import "ios/web/public/navigation_item.h" 8 #import "ios/web/public/navigation_item.h"
9 #include "ios/web/public/navigation_item_list.h" 9 #include "ios/web/public/navigation_item_list.h"
10 #import "ios/web/public/navigation_manager.h" 10 #import "ios/web/public/navigation_manager.h"
(...skipping 27 matching lines...) Expand all
38 bool CanGoForward() const override; 38 bool CanGoForward() const override;
39 bool CanGoToOffset(int offset) const override; 39 bool CanGoToOffset(int offset) const override;
40 void GoBack() override; 40 void GoBack() override;
41 void GoForward() override; 41 void GoForward() override;
42 void GoToIndex(int index) override; 42 void GoToIndex(int index) override;
43 void Reload(ReloadType reload_type, bool check_for_reposts) override; 43 void Reload(ReloadType reload_type, bool check_for_reposts) override;
44 NavigationItemList GetBackwardItems() const override; 44 NavigationItemList GetBackwardItems() const override;
45 NavigationItemList GetForwardItems() const override; 45 NavigationItemList GetForwardItems() const override;
46 void CopyStateFromAndPrune(const NavigationManager* source) override; 46 void CopyStateFromAndPrune(const NavigationManager* source) override;
47 bool CanPruneAllButLastCommittedItem() const override; 47 bool CanPruneAllButLastCommittedItem() const override;
48 void OverrideDesktopUserAgentForNextPendingItem() override;
49 48
50 // Setters for test data. 49 // Setters for test data.
51 // Sets a value for last committed item that will be returned by 50 // Sets a value for last committed item that will be returned by
52 // GetLastCommittedItem(). 51 // GetLastCommittedItem().
53 void SetLastCommittedItem(NavigationItem* item); 52 void SetLastCommittedItem(NavigationItem* item);
54 53
55 // Sets a value for pending item that will be returned by GetPendingItem(). 54 // Sets a value for pending item that will be returned by GetPendingItem().
56 void SetPendingItem(NavigationItem* item); 55 void SetPendingItem(NavigationItem* item);
57 56
58 // Sets a value for visible item that will be returned by GetVisibleItem(). 57 // Sets a value for visible item that will be returned by GetVisibleItem().
(...skipping 13 matching lines...) Expand all
72 int items_index_; 71 int items_index_;
73 // Individual backing instance variables for Set* test set up methods. 72 // Individual backing instance variables for Set* test set up methods.
74 NavigationItem* pending_item_; 73 NavigationItem* pending_item_;
75 NavigationItem* last_committed_item_; 74 NavigationItem* last_committed_item_;
76 NavigationItem* visible_item_; 75 NavigationItem* visible_item_;
77 }; 76 };
78 77
79 } // namespace web 78 } // namespace web
80 79
81 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_ 80 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_NAVIGATION_MANAGER_H_
OLDNEW
« no previous file with comments | « ios/web/public/navigation_manager.h ('k') | ios/web/public/test/fakes/test_navigation_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698