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_SHELL_SHELL_MAIN_DELEGATE_H_ | 5 #ifndef IOS_WEB_SHELL_SHELL_MAIN_DELEGATE_H_ |
6 #define IOS_WEB_SHELL_SHELL_MAIN_DELEGATE_H_ | 6 #define IOS_WEB_SHELL_SHELL_MAIN_DELEGATE_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "ios/web/public/app/web_main_delegate.h" | 11 #include "ios/web/public/app/web_main_delegate.h" |
11 | 12 |
12 namespace web { | 13 namespace web { |
13 class ShellWebClient; | 14 class ShellWebClient; |
14 | 15 |
15 class ShellMainDelegate : public WebMainDelegate { | 16 class ShellMainDelegate : public WebMainDelegate { |
16 public: | 17 public: |
17 ShellMainDelegate(); | 18 ShellMainDelegate(); |
18 ~ShellMainDelegate() override; | 19 ~ShellMainDelegate() override; |
19 | 20 |
20 void BasicStartupComplete() override; | 21 void BasicStartupComplete() override; |
21 | 22 |
22 private: | 23 private: |
23 scoped_ptr<ShellWebClient> web_client_; | 24 std::unique_ptr<ShellWebClient> web_client_; |
24 }; | 25 }; |
25 | 26 |
26 } // namespace web | 27 } // namespace web |
27 | 28 |
28 #endif // IOS_WEB_SHELL_SHELL_MAIN_DELEGATE_H_ | 29 #endif // IOS_WEB_SHELL_SHELL_MAIN_DELEGATE_H_ |
OLD | NEW |