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_WEB_MAIN_PARTS_H_ | 5 #ifndef IOS_WEB_SHELL_SHELL_WEB_MAIN_PARTS_H_ |
6 #define IOS_WEB_SHELL_SHELL_WEB_MAIN_PARTS_H_ | 6 #define IOS_WEB_SHELL_SHELL_WEB_MAIN_PARTS_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "ios/web/public/app/web_main_parts.h" | 10 #include "ios/web/public/app/web_main_parts.h" |
9 | 11 |
10 #include "base/memory/scoped_ptr.h" | |
11 | 12 |
12 namespace web { | 13 namespace web { |
13 class ShellBrowserState; | 14 class ShellBrowserState; |
14 | 15 |
15 // Shell-specific implementation of WebMainParts. | 16 // Shell-specific implementation of WebMainParts. |
16 class ShellWebMainParts : public WebMainParts { | 17 class ShellWebMainParts : public WebMainParts { |
17 public: | 18 public: |
18 ShellWebMainParts(); | 19 ShellWebMainParts(); |
19 ~ShellWebMainParts() override; | 20 ~ShellWebMainParts() override; |
20 | 21 |
21 ShellBrowserState* browser_state() const { return browser_state_.get(); } | 22 ShellBrowserState* browser_state() const { return browser_state_.get(); } |
22 | 23 |
23 // WebMainParts implementation. | 24 // WebMainParts implementation. |
24 void PreMainMessageLoopRun() override; | 25 void PreMainMessageLoopRun() override; |
25 | 26 |
26 private: | 27 private: |
27 scoped_ptr<ShellBrowserState> browser_state_; | 28 std::unique_ptr<ShellBrowserState> browser_state_; |
28 }; | 29 }; |
29 | 30 |
30 } // namespace web | 31 } // namespace web |
31 | 32 |
32 #endif // IOS_WEB_SHELL_SHELL_WEB_MAIN_PARTS_H_ | 33 #endif // IOS_WEB_SHELL_SHELL_WEB_MAIN_PARTS_H_ |
OLD | NEW |