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

Side by Side Diff: ios/web/web_state/ui/crw_web_controller.h

Issue 1836793002: [ios] Moved WebLoadParams inside NavigationManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « ios/web/shell/view_controller.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #import "ios/web/net/crw_request_tracker_delegate.h" 11 #import "ios/web/net/crw_request_tracker_delegate.h"
12 #import "ios/web/public/navigation_manager.h"
12 #import "ios/web/public/web_state/crw_web_user_interface_delegate.h" 13 #import "ios/web/public/web_state/crw_web_user_interface_delegate.h"
13 #import "ios/web/public/web_state/js/crw_js_injection_evaluator.h" 14 #import "ios/web/public/web_state/js/crw_js_injection_evaluator.h"
14 #import "ios/web/public/web_state/ui/crw_web_delegate.h" 15 #import "ios/web/public/web_state/ui/crw_web_delegate.h"
15 #include "ios/web/public/web_state/url_verification_constants.h" 16 #include "ios/web/public/web_state/url_verification_constants.h"
16 #import "ios/web/web_state/ui/crw_touch_tracking_recognizer.h" 17 #import "ios/web/web_state/ui/crw_touch_tracking_recognizer.h"
17 18
18 namespace web { 19 namespace web {
19 20
20 // Page load phases. 21 // Page load phases.
21 enum LoadPhase { 22 enum LoadPhase {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 166
166 // Methods for navigation and properties to interrogate state. 167 // Methods for navigation and properties to interrogate state.
167 - (void)reload; 168 - (void)reload;
168 - (void)stopLoading; 169 - (void)stopLoading;
169 // YES if the CRWWebController's view is deemed appropriate for saving in order 170 // YES if the CRWWebController's view is deemed appropriate for saving in order
170 // to generate an overlay placeholder view. 171 // to generate an overlay placeholder view.
171 - (BOOL)canUseViewForGeneratingOverlayPlaceholderView; 172 - (BOOL)canUseViewForGeneratingOverlayPlaceholderView;
172 173
173 // Start loading the URL specified in |originalParams|, with the specified 174 // Start loading the URL specified in |originalParams|, with the specified
174 // settings. Always resets the openedByScript property to NO. 175 // settings. Always resets the openedByScript property to NO.
175 - (void)loadWithParams:(const web::WebLoadParams&)originalParams; 176 - (void)loadWithParams:(const web::NavigationManager::WebLoadParams&)params;
176 177
177 // Loads the URL indicated by current session state. 178 // Loads the URL indicated by current session state.
178 - (void)loadCurrentURL; 179 - (void)loadCurrentURL;
179 180
180 // Loads HTML in the page and presents it as if it was originating from an 181 // Loads HTML in the page and presents it as if it was originating from an
181 // application specific URL. 182 // application specific URL.
182 - (void)loadHTML:(NSString*)HTML forAppSpecificURL:(const GURL&)URL; 183 - (void)loadHTML:(NSString*)HTML forAppSpecificURL:(const GURL&)URL;
183 184
184 // Loads HTML in the page and presents it as if it was originating from the 185 // Loads HTML in the page and presents it as if it was originating from the
185 // URL itself. Should be used only in specific cases, where the injected html 186 // URL itself. Should be used only in specific cases, where the injected html
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // Returns the header height. 316 // Returns the header height.
316 - (CGFloat)headerHeight; 317 - (CGFloat)headerHeight;
317 318
318 // Caches request POST data in the given session entry. Exposed for testing. 319 // Caches request POST data in the given session entry. Exposed for testing.
319 - (void)cachePOSTDataForRequest:(NSURLRequest*)request 320 - (void)cachePOSTDataForRequest:(NSURLRequest*)request
320 inSessionEntry:(CRWSessionEntry*)currentSessionEntry; 321 inSessionEntry:(CRWSessionEntry*)currentSessionEntry;
321 322
322 @end 323 @end
323 324
324 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 325 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/web/shell/view_controller.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698