| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_WEBUI_CRW_WEB_UI_MANAGER_H_ | 5 #ifndef IOS_WEB_WEBUI_CRW_WEB_UI_MANAGER_H_ |
| 6 #define IOS_WEB_WEBUI_CRW_WEB_UI_MANAGER_H_ | 6 #define IOS_WEB_WEBUI_CRW_WEB_UI_MANAGER_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #import "ios/web/public/web_state/web_state_observer_bridge.h" | 10 #import "ios/web/public/web_state/web_state_observer_bridge.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // Designated initializer. | 25 // Designated initializer. |
| 26 - (instancetype)initWithWebState:(web::WebStateImpl*)webState; | 26 - (instancetype)initWithWebState:(web::WebStateImpl*)webState; |
| 27 | 27 |
| 28 @end | 28 @end |
| 29 | 29 |
| 30 @interface CRWWebUIManager (UsedOnlyForTesting) // Testing API. | 30 @interface CRWWebUIManager (UsedOnlyForTesting) // Testing API. |
| 31 | 31 |
| 32 // Returns URLFetcherBlockAdapter for fetching resource for URL. Can be | 32 // Returns URLFetcherBlockAdapter for fetching resource for URL. Can be |
| 33 // overwritten by test classes to mock resource retrieval. | 33 // overwritten by test classes to mock resource retrieval. |
| 34 - (scoped_ptr<web::URLFetcherBlockAdapter>) | 34 - (std::unique_ptr<web::URLFetcherBlockAdapter>) |
| 35 fetcherForURL:(const GURL&)URL | 35 fetcherForURL:(const GURL&)URL |
| 36 completionHandler:(web::URLFetcherBlockAdapterCompletion)handler; | 36 completionHandler:(web::URLFetcherBlockAdapterCompletion)handler; |
| 37 | 37 |
| 38 @end | 38 @end |
| 39 | 39 |
| 40 #endif // IOS_WEB_WEBUI_CRW_WEB_UI_MANAGER_H_ | 40 #endif // IOS_WEB_WEBUI_CRW_WEB_UI_MANAGER_H_ |
| OLD | NEW |