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

Side by Side Diff: ios/web/webui/crw_web_ui_manager.h

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 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 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 #include <memory>
11
10 #import "ios/web/public/web_state/web_state_observer_bridge.h" 12 #import "ios/web/public/web_state/web_state_observer_bridge.h"
11 #import "ios/web/webui/url_fetcher_block_adapter.h" 13 #import "ios/web/webui/url_fetcher_block_adapter.h"
12 14
13 class GURL; 15 class GURL;
14 16
15 namespace web { 17 namespace web {
16 class WebStateImpl; 18 class WebStateImpl;
17 } // namespace web 19 } // namespace web
18 20
19 // Class for managing WebUI pages. Manages fetching of resources and post-load 21 // Class for managing WebUI pages. Manages fetching of resources and post-load
20 // operations such as favicon loading. Initialized instances of CRWWebUIManager 22 // operations such as favicon loading. Initialized instances of CRWWebUIManager
21 // will automatically register as an observer of webState, and should be kept in 23 // will automatically register as an observer of webState, and should be kept in
22 // scope for the lifetime of the WebUI page. 24 // scope for the lifetime of the WebUI page.
23 @interface CRWWebUIManager : NSObject<CRWWebStateObserver> 25 @interface CRWWebUIManager : NSObject<CRWWebStateObserver>
24 26
25 // Designated initializer. 27 // Designated initializer.
26 - (instancetype)initWithWebState:(web::WebStateImpl*)webState; 28 - (instancetype)initWithWebState:(web::WebStateImpl*)webState;
27 29
28 @end 30 @end
29 31
30 @interface CRWWebUIManager (UsedOnlyForTesting) // Testing API. 32 @interface CRWWebUIManager (UsedOnlyForTesting) // Testing API.
31 33
32 // Returns URLFetcherBlockAdapter for fetching resource for URL. Can be 34 // Returns URLFetcherBlockAdapter for fetching resource for URL. Can be
33 // overwritten by test classes to mock resource retrieval. 35 // overwritten by test classes to mock resource retrieval.
34 - (scoped_ptr<web::URLFetcherBlockAdapter>) 36 - (std::unique_ptr<web::URLFetcherBlockAdapter>)
35 fetcherForURL:(const GURL&)URL 37 fetcherForURL:(const GURL&)URL
36 completionHandler:(web::URLFetcherBlockAdapterCompletion)handler; 38 completionHandler:(web::URLFetcherBlockAdapterCompletion)handler;
37 39
38 @end 40 @end
39 41
40 #endif // IOS_WEB_WEBUI_CRW_WEB_UI_MANAGER_H_ 42 #endif // IOS_WEB_WEBUI_CRW_WEB_UI_MANAGER_H_
OLDNEW
« no previous file with comments | « ios/web/web_state/wk_web_view_security_util_unittest.mm ('k') | ios/web/webui/crw_web_ui_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698