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

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

Issue 1610143002: Adds UMA for slow and fast back/forward WKWebController navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pre-review cleanup Created 4 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PROTECTED_H_ 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ 6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
7 7
8 #import "ios/web/web_state/ui/crw_web_controller.h" 8 #import "ios/web/web_state/ui/crw_web_controller.h"
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // Updates the internal state and informs the delegate that any outstanding load 214 // Updates the internal state and informs the delegate that any outstanding load
215 // operations are cancelled. 215 // operations are cancelled.
216 - (void)loadCancelled; 216 - (void)loadCancelled;
217 217
218 // Called when a load ends in an error. 218 // Called when a load ends in an error.
219 // TODO(stuartmorgan): Figure out if there's actually enough shared logic that 219 // TODO(stuartmorgan): Figure out if there's actually enough shared logic that
220 // this makes sense. At the very least remove inMainFrame since that only makes 220 // this makes sense. At the very least remove inMainFrame since that only makes
221 // sense for UIWebView. 221 // sense for UIWebView.
222 - (void)handleLoadError:(NSError*)error inMainFrame:(BOOL)inMainFrame; 222 - (void)handleLoadError:(NSError*)error inMainFrame:(BOOL)inMainFrame;
223 223
224 // YES if a fast navigation can be performed using WKBackForwardList.
225 - (BOOL)canPerformFastNavigationForSessionEntry:(CRWSessionEntry*)sessionEntry;
226
224 #pragma mark - Internal methods for use by subclasses 227 #pragma mark - Internal methods for use by subclasses
225 228
226 // The web view's view of the current URL. During page transitions 229 // The web view's view of the current URL. During page transitions
227 // this may not be the same as the session history's view of the current URL. 230 // this may not be the same as the session history's view of the current URL.
228 // This method can change the state of the CRWWebController, as it will display 231 // This method can change the state of the CRWWebController, as it will display
229 // an error if the returned URL is not reliable from a security point of view. 232 // an error if the returned URL is not reliable from a security point of view.
230 // Note that this method is expensive, so it should always be cached locally if 233 // Note that this method is expensive, so it should always be cached locally if
231 // it's needed multiple times in a method. 234 // it's needed multiple times in a method.
232 @property(nonatomic, readonly) GURL currentURL; 235 @property(nonatomic, readonly) GURL currentURL;
233 236
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 409
407 // Resets pending external request information. 410 // Resets pending external request information.
408 - (void)resetExternalRequest; 411 - (void)resetExternalRequest;
409 412
410 // Converts MIME type string to WebViewDocumentType. 413 // Converts MIME type string to WebViewDocumentType.
411 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType; 414 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType;
412 415
413 @end 416 @end
414 417
415 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ 418 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698