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

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

Issue 2718733003: Removed -[CRWWebDelegate webDidUpdateHistoryStateWithPageURL]. (Closed)
Patch Set: 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 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_PUBLIC_TEST_FAKES_CRW_TEST_WEB_STATE_OBSERVER_H_ 5 #ifndef IOS_WEB_PUBLIC_TEST_FAKES_CRW_TEST_WEB_STATE_OBSERVER_H_
6 #define IOS_WEB_PUBLIC_TEST_FAKES_CRW_TEST_WEB_STATE_OBSERVER_H_ 6 #define IOS_WEB_PUBLIC_TEST_FAKES_CRW_TEST_WEB_STATE_OBSERVER_H_
7 7
8 #include "ios/web/public/favicon_url.h" 8 #include "ios/web/public/favicon_url.h"
9 #include "ios/web/public/load_committed_details.h" 9 #include "ios/web/public/load_committed_details.h"
10 #import "ios/web/public/web_state/web_state_observer_bridge.h" 10 #import "ios/web/public/web_state/web_state_observer_bridge.h"
11 #import "ios/web/public/web_state/web_state.h"
12 11
13 namespace web { 12 namespace web {
14 13
14 class NavigationContext;
15 class WebState;
16
15 // Arguments passed to |webState:didStartProvisionalNavigationForURL:|. 17 // Arguments passed to |webState:didStartProvisionalNavigationForURL:|.
16 struct TestStartProvisionalNavigationInfo { 18 struct TestStartProvisionalNavigationInfo {
17 WebState* web_state; 19 WebState* web_state;
18 GURL url; 20 GURL url;
19 }; 21 };
20 22
23 // Arguments passed to |webState:didFinishNavigation:|.
24 struct TestDidFinishNavigationInfo {
25 WebState* web_state;
26 web::NavigationContext* context;
27 };
28
21 // Arguments passed to |webState:didCommitNavigationWithDetails:|. 29 // Arguments passed to |webState:didCommitNavigationWithDetails:|.
22 struct TestCommitNavigationInfo { 30 struct TestCommitNavigationInfo {
23 WebState* web_state; 31 WebState* web_state;
24 LoadCommittedDetails load_details; 32 LoadCommittedDetails load_details;
25 }; 33 };
26 34
27 // Arguments passed to |webState:didLoadPageWithSuccess:|. 35 // Arguments passed to |webState:didLoadPageWithSuccess:|.
28 struct TestLoadPageInfo { 36 struct TestLoadPageInfo {
29 WebState* web_state; 37 WebState* web_state;
30 BOOL success; 38 BOOL success;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 }; 108 };
101 109
102 } // namespace web 110 } // namespace web
103 111
104 // Test implementation of CRWWebStateObserver protocol. 112 // Test implementation of CRWWebStateObserver protocol.
105 @interface CRWTestWebStateObserver : NSObject<CRWWebStateObserver> 113 @interface CRWTestWebStateObserver : NSObject<CRWWebStateObserver>
106 114
107 // Arguments passed to |webState:didStartProvisionalNavigationForURL:|. 115 // Arguments passed to |webState:didStartProvisionalNavigationForURL:|.
108 @property(nonatomic, readonly) 116 @property(nonatomic, readonly)
109 web::TestStartProvisionalNavigationInfo* startProvisionalNavigationInfo; 117 web::TestStartProvisionalNavigationInfo* startProvisionalNavigationInfo;
118 // Arguments passed to |webState:didFinishNavigation:|.
119 @property(nonatomic, readonly)
120 web::TestDidFinishNavigationInfo* didFinishNavigationInfo;
110 // Arguments passed to |webState:didCommitNavigationWithDetails:|. 121 // Arguments passed to |webState:didCommitNavigationWithDetails:|.
111 @property(nonatomic, readonly) 122 @property(nonatomic, readonly)
112 web::TestCommitNavigationInfo* commitNavigationInfo; 123 web::TestCommitNavigationInfo* commitNavigationInfo;
113 // Arguments passed to |webState:didLoadPageWithSuccess:|. 124 // Arguments passed to |webState:didLoadPageWithSuccess:|.
114 @property(nonatomic, readonly) web::TestLoadPageInfo* loadPageInfo; 125 @property(nonatomic, readonly) web::TestLoadPageInfo* loadPageInfo;
115 // Arguments passed to |webStateDidDismissInterstitial:|. 126 // Arguments passed to |webStateDidDismissInterstitial:|.
116 @property(nonatomic, readonly) 127 @property(nonatomic, readonly)
117 web::TestDismissInterstitialInfo* dismissInterstitialInfo; 128 web::TestDismissInterstitialInfo* dismissInterstitialInfo;
118 // Arguments passed to |webStateDidChangeURLHash:|. 129 // Arguments passed to |webStateDidChangeURLHash:|.
119 @property(nonatomic, readonly) web::TestChangeUrlHashInfo* changeUrlHashInfo; 130 @property(nonatomic, readonly) web::TestChangeUrlHashInfo* changeUrlHashInfo;
(...skipping 18 matching lines...) Expand all
138 @property(nonatomic, readonly) 149 @property(nonatomic, readonly)
139 web::TestWebStateDestroyedInfo* webStateDestroyedInfo; 150 web::TestWebStateDestroyedInfo* webStateDestroyedInfo;
140 // Arguments passed to |webStateDidStopLoading:|. 151 // Arguments passed to |webStateDidStopLoading:|.
141 @property(nonatomic, readonly) web::TestStopLoadingInfo* stopLoadingInfo; 152 @property(nonatomic, readonly) web::TestStopLoadingInfo* stopLoadingInfo;
142 // Arguments passed to |webStateDidStartLoading:|. 153 // Arguments passed to |webStateDidStartLoading:|.
143 @property(nonatomic, readonly) web::TestStartLoadingInfo* startLoadingInfo; 154 @property(nonatomic, readonly) web::TestStartLoadingInfo* startLoadingInfo;
144 155
145 @end 156 @end
146 157
147 #endif // IOS_WEB_PUBLIC_TEST_FAKES_CRW_TEST_WEB_STATE_OBSERVER_H_ 158 #endif // IOS_WEB_PUBLIC_TEST_FAKES_CRW_TEST_WEB_STATE_OBSERVER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/web/public/test/fakes/crw_test_web_state_observer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698