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

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

Issue 2741413007: Refactoring Reload in NavigationManager and CRWWebController. (Closed)
Patch Set: Rebase and Remove DCHECK in |loadWithParams| as it has already been taken care of 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
« no previous file with comments | « ios/web/public/navigation_manager.h ('k') | ios/web/web_state/web_state_impl.h » ('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 #import "ios/web/net/crw_request_tracker_delegate.h" 10 #import "ios/web/net/crw_request_tracker_delegate.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // appropriate, as this method won't display any error to the user. 146 // appropriate, as this method won't display any error to the user.
147 - (GURL)currentURLWithTrustLevel:(web::URLVerificationTrustLevel*)trustLevel; 147 - (GURL)currentURLWithTrustLevel:(web::URLVerificationTrustLevel*)trustLevel;
148 148
149 // Methods for navigation and properties to interrogate state. 149 // Methods for navigation and properties to interrogate state.
150 - (void)reload; 150 - (void)reload;
151 - (void)stopLoading; 151 - (void)stopLoading;
152 // YES if the CRWWebController's view is deemed appropriate for saving in order 152 // YES if the CRWWebController's view is deemed appropriate for saving in order
153 // to generate an overlay placeholder view. 153 // to generate an overlay placeholder view.
154 - (BOOL)canUseViewForGeneratingOverlayPlaceholderView; 154 - (BOOL)canUseViewForGeneratingOverlayPlaceholderView;
155 155
156 // Start loading the URL specified in |originalParams|, with the specified 156 // Start loading the URL specified in |params|, with the specified
157 // settings. Always resets the openedByScript property to NO. 157 // settings. Always resets the openedByScript property to NO.
158 // NOTE: |params.transition_type| should never be PAGE_TRANSITION_RELOAD except
159 // for transient items, if one needs to reload, call |-reload| explicitly.
158 - (void)loadWithParams:(const web::NavigationManager::WebLoadParams&)params; 160 - (void)loadWithParams:(const web::NavigationManager::WebLoadParams&)params;
159 161
160 // Loads the URL indicated by current session state. 162 // Loads the URL indicated by current session state.
161 - (void)loadCurrentURL; 163 - (void)loadCurrentURL;
162 164
163 // Loads HTML in the page and presents it as if it was originating from an 165 // Loads HTML in the page and presents it as if it was originating from an
164 // application specific URL. 166 // application specific URL.
165 - (void)loadHTML:(NSString*)HTML forAppSpecificURL:(const GURL&)URL; 167 - (void)loadHTML:(NSString*)HTML forAppSpecificURL:(const GURL&)URL;
166 168
167 // Loads HTML in the page and presents it as if it was originating from the 169 // Loads HTML in the page and presents it as if it was originating from the
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 302
301 // Acts on a single message from the JS object, parsed from JSON into a 303 // Acts on a single message from the JS object, parsed from JSON into a
302 // DictionaryValue. Returns NO if the format for the message was invalid. 304 // DictionaryValue. Returns NO if the format for the message was invalid.
303 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage 305 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage
304 userIsInteracting:(BOOL)userIsInteracting 306 userIsInteracting:(BOOL)userIsInteracting
305 originURL:(const GURL&)originURL; 307 originURL:(const GURL&)originURL;
306 308
307 @end 309 @end
308 310
309 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 311 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/web/public/navigation_manager.h ('k') | ios/web/web_state/web_state_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698