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

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

Issue 2888773003: Do not create CRWWebUIManager for non-WebUI URLs. (Closed)
Patch Set: Updated comments Created 3 years, 7 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 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Start loading the URL specified in |params|, with the specified 155 // Start loading the URL specified in |params|, with the specified
156 // settings. Always resets the openedByScript property to NO. 156 // settings. Always resets the openedByScript property to NO.
157 // NOTE: |params.transition_type| should never be PAGE_TRANSITION_RELOAD except 157 // NOTE: |params.transition_type| should never be PAGE_TRANSITION_RELOAD except
158 // for transient items, if one needs to reload, call |-reload| explicitly. 158 // for transient items, if one needs to reload, call |-reload| explicitly.
159 - (void)loadWithParams:(const web::NavigationManager::WebLoadParams&)params; 159 - (void)loadWithParams:(const web::NavigationManager::WebLoadParams&)params;
160 160
161 // Loads the URL indicated by current session state. 161 // Loads the URL indicated by current session state.
162 - (void)loadCurrentURL; 162 - (void)loadCurrentURL;
163 163
164 // Loads HTML in the page and presents it as if it was originating from an 164 // Loads HTML in the page and presents it as if it was originating from an
165 // application specific URL. 165 // application specific URL. |HTML| must not be empty.
166 - (void)loadHTML:(NSString*)HTML forAppSpecificURL:(const GURL&)URL; 166 - (void)loadHTML:(NSString*)HTML forAppSpecificURL:(const GURL&)URL;
167 167
168 // Loads HTML in the page and presents it as if it was originating from the 168 // Loads HTML in the page and presents it as if it was originating from the
169 // URL itself. Should be used only in specific cases, where the injected html 169 // URL itself. Should be used only in specific cases, where the injected html
170 // is guaranteed to be some derived representation of the original content. 170 // is guaranteed to be some derived representation of the original content.
171 - (void)loadHTMLForCurrentURL:(NSString*)HTML; 171 - (void)loadHTMLForCurrentURL:(NSString*)HTML;
172 172
173 // Stops loading the page. 173 // Stops loading the page.
174 - (void)stopLoading; 174 - (void)stopLoading;
175 175
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 // Returns the number of observers registered for this CRWWebController. 272 // Returns the number of observers registered for this CRWWebController.
273 - (NSUInteger)observerCount; 273 - (NSUInteger)observerCount;
274 274
275 // Loads the HTML into the page at the given URL. 275 // Loads the HTML into the page at the given URL.
276 - (void)loadHTML:(NSString*)HTML forURL:(const GURL&)URL; 276 - (void)loadHTML:(NSString*)HTML forURL:(const GURL&)URL;
277 277
278 @end 278 @end
279 279
280 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 280 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/autofill/form_suggestion_controller_unittest.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