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_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 Loading... |
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_ |
OLD | NEW |