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

Side by Side Diff: ios/web/test/fakes/test_navigation_manager_delegate.h

Issue 2957163002: [Navigation Experiment] Add WKBasedNavigationManagerImpl. (Closed)
Patch Set: Changed WebViewNavigationProxy to a protocol Created 3 years, 5 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_TEST_FAKES_TEST_NAVIGATION_MANAGER_DELEGATE_H_ 5 #ifndef IOS_WEB_TEST_FAKES_TEST_NAVIGATION_MANAGER_DELEGATE_H_
6 #define IOS_WEB_TEST_FAKES_TEST_NAVIGATION_MANAGER_DELEGATE_H_ 6 #define IOS_WEB_TEST_FAKES_TEST_NAVIGATION_MANAGER_DELEGATE_H_
7 7
8 #import "ios/web/navigation/navigation_manager_delegate.h" 8 #import "ios/web/navigation/navigation_manager_delegate.h"
9 9
10 @protocol WebViewNavigationProxy;
11
10 namespace web { 12 namespace web {
13 class WebViewNavigationProxy;
11 14
12 class TestNavigationManagerDelegate : public NavigationManagerDelegate { 15 class TestNavigationManagerDelegate : public NavigationManagerDelegate {
13 public: 16 public:
14 void GoToIndex(int index) override; 17 void GoToIndex(int index) override;
15 void LoadURLWithParams(const NavigationManager::WebLoadParams&) override; 18 void LoadURLWithParams(const NavigationManager::WebLoadParams&) override;
16 void Reload() override; 19 void Reload() override;
17 void OnNavigationItemsPruned(size_t pruned_item_count) override; 20 void OnNavigationItemsPruned(size_t pruned_item_count) override;
18 void OnNavigationItemChanged() override; 21 void OnNavigationItemChanged() override;
19 void OnNavigationItemCommitted( 22 void OnNavigationItemCommitted(
20 const LoadCommittedDetails& load_details) override; 23 const LoadCommittedDetails& load_details) override;
21 WebState* GetWebState() override; 24 WebState* GetWebState() override;
25 id<WebViewNavigationProxy> GetWebViewNavigationProxy() const override;
22 }; 26 };
23 27
24 } // namespace web 28 } // namespace web
25 29
26 #endif // IOS_WEB_TEST_FAKES_TEST_NAVIGATION_MANAGER_DELEGATE_H_ 30 #endif // IOS_WEB_TEST_FAKES_TEST_NAVIGATION_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698