| 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_WK_WEB_VIEW_WEB_CONTROLLER_H_ | 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WK_WEB_VIEW_WEB_CONTROLLER_H_ |
| 6 #define IOS_WEB_WEB_STATE_UI_CRW_WK_WEB_VIEW_WEB_CONTROLLER_H_ | 6 #define IOS_WEB_WEB_STATE_UI_CRW_WK_WEB_VIEW_WEB_CONTROLLER_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 <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 // A concrete implementation of CRWWebController based on WKWebView. | 12 // A concrete implementation of CRWWebController based on WKWebView. |
| 13 @interface CRWWKWebViewWebController : CRWWebController | 13 @interface CRWWKWebViewWebController : CRWWebController |
| 14 | 14 |
| 15 // Designated initializer. | 15 // Designated initializer. Initializes web controller with |webState|. The |
| 16 - (instancetype)initWithWebState:(std::unique_ptr<web::WebStateImpl>)webState; | 16 // calling code must retain the ownership of |webState|. |
| 17 - (instancetype)initWithWebState:(web::WebStateImpl*)webState; |
| 17 | 18 |
| 18 @end | 19 @end |
| 19 | 20 |
| 20 #endif // IOS_WEB_WEB_STATE_UI_CRW_WK_WEB_VIEW_WEB_CONTROLLER_H_ | 21 #endif // IOS_WEB_WEB_STATE_UI_CRW_WK_WEB_VIEW_WEB_CONTROLLER_H_ |
| OLD | NEW |