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

Side by Side Diff: ios/web/shell/shell_web_main_parts.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
« no previous file with comments | « ios/web/shell/shell_web_client.h ('k') | ios/web/shell/view_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « ios/web/shell/shell_web_client.h ('k') | ios/web/shell/view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698