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

Side by Side Diff: ios/public/provider/web/web_controller_provider.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_PUBLIC_PROVIDER_WEB_WEB_CONTROLLER_PROVIDER_H_ 5 #ifndef IOS_PUBLIC_PROVIDER_WEB_WEB_CONTROLLER_PROVIDER_H_
6 #define IOS_PUBLIC_PROVIDER_WEB_WEB_CONTROLLER_PROVIDER_H_ 6 #define IOS_PUBLIC_PROVIDER_WEB_WEB_CONTROLLER_PROVIDER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9
9 #include "ios/web/public/block_types.h" 10 #include "ios/web/public/block_types.h"
10 #include "ios/web/public/web_state/web_state_observer.h" 11 #include "ios/web/public/web_state/web_state_observer.h"
11 #include "url/gurl.h" 12 #include "url/gurl.h"
12 13
13 namespace web { 14 namespace web {
14 class BrowserState; 15 class BrowserState;
15 class WebState; 16 class WebState;
16 } 17 }
17 18
18 namespace ios { 19 namespace ios {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 web::JavaScriptCompletion completion); 54 web::JavaScriptCompletion completion);
54 }; 55 };
55 56
56 class WebControllerProviderFactory { 57 class WebControllerProviderFactory {
57 public: 58 public:
58 WebControllerProviderFactory(); 59 WebControllerProviderFactory();
59 virtual ~WebControllerProviderFactory(); 60 virtual ~WebControllerProviderFactory();
60 61
61 // Vends WebControllerProviders created using |browser_state|, passing 62 // Vends WebControllerProviders created using |browser_state|, passing
62 // ownership to callers. 63 // ownership to callers.
63 virtual scoped_ptr<WebControllerProvider> CreateWebControllerProvider( 64 virtual std::unique_ptr<WebControllerProvider> CreateWebControllerProvider(
64 web::BrowserState* browser_state); 65 web::BrowserState* browser_state);
65 }; 66 };
66 67
67 } // namespace ios 68 } // namespace ios
68 69
69 #endif // IOS_PUBLIC_PROVIDER_WEB_WEB_CONTROLLER_PROVIDER_H_ 70 #endif // IOS_PUBLIC_PROVIDER_WEB_WEB_CONTROLLER_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698