| OLD | NEW |
| 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 #import <WebKit/WebKit.h> | 10 #import <WebKit/WebKit.h> |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // navigation manager and treating that as authoritative. For now, this allows | 130 // navigation manager and treating that as authoritative. For now, this allows |
| 131 // sharing the flow that's currently in the superclass. | 131 // sharing the flow that's currently in the superclass. |
| 132 @property(nonatomic, readonly) GURL documentURL; | 132 @property(nonatomic, readonly) GURL documentURL; |
| 133 | 133 |
| 134 // YES if the user has interacted with the content area since the last URL | 134 // YES if the user has interacted with the content area since the last URL |
| 135 // change. | 135 // change. |
| 136 @property(nonatomic, readonly) BOOL interactionRegisteredSinceLastURLChange; | 136 @property(nonatomic, readonly) BOOL interactionRegisteredSinceLastURLChange; |
| 137 | 137 |
| 138 - (CRWWebControllerPendingNavigationInfo*)pendingNavigationInfo; | 138 - (CRWWebControllerPendingNavigationInfo*)pendingNavigationInfo; |
| 139 | 139 |
| 140 // Designated initializer. | 140 // Designated initializer. Initializes web controller with |webState|. The |
| 141 - (instancetype)initWithWebState:(std::unique_ptr<web::WebStateImpl>)webState; | 141 // calling code must retain the ownership of |webState|. |
| 142 - (instancetype)initWithWebState:(web::WebStateImpl*)webState; |
| 142 | 143 |
| 143 // Creates a web view if it's not yet created. | 144 // Creates a web view if it's not yet created. |
| 144 - (void)ensureWebViewCreated; | 145 - (void)ensureWebViewCreated; |
| 145 | 146 |
| 146 // Destroys the web view by setting webView property to nil. | 147 // Destroys the web view by setting webView property to nil. |
| 147 - (void)resetWebView; | 148 - (void)resetWebView; |
| 148 | 149 |
| 149 // Sets _documentURL to newURL, and updates any relevant state information. | 150 // Sets _documentURL to newURL, and updates any relevant state information. |
| 150 - (void)setDocumentURL:(const GURL&)newURL; | 151 - (void)setDocumentURL:(const GURL&)newURL; |
| 151 | 152 |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 | 503 |
| 503 // Converts MIME type string to WebViewDocumentType. | 504 // Converts MIME type string to WebViewDocumentType. |
| 504 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType; | 505 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType; |
| 505 | 506 |
| 506 // Extracts Referer value from WKNavigationAction request header. | 507 // Extracts Referer value from WKNavigationAction request header. |
| 507 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action; | 508 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action; |
| 508 | 509 |
| 509 @end | 510 @end |
| 510 | 511 |
| 511 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ | 512 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ |
| OLD | NEW |