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

Side by Side Diff: android_webview/browser/aw_browser_main_parts.h

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git is hard 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_
7 7
8 #include <memory>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "content/public/browser/browser_main_parts.h" 12 #include "content/public/browser/browser_main_parts.h"
12 13
13 namespace base { 14 namespace base {
14 class MessageLoop; 15 class MessageLoop;
15 } 16 }
16 17
17 namespace android_webview { 18 namespace android_webview {
18 19
19 class AwBrowserContext; 20 class AwBrowserContext;
20 21
21 class AwBrowserMainParts : public content::BrowserMainParts { 22 class AwBrowserMainParts : public content::BrowserMainParts {
22 public: 23 public:
23 explicit AwBrowserMainParts(AwBrowserContext* browser_context); 24 explicit AwBrowserMainParts(AwBrowserContext* browser_context);
24 ~AwBrowserMainParts() override; 25 ~AwBrowserMainParts() override;
25 26
26 // Overriding methods from content::BrowserMainParts. 27 // Overriding methods from content::BrowserMainParts.
27 void PreEarlyInitialization() override; 28 void PreEarlyInitialization() override;
28 int PreCreateThreads() override; 29 int PreCreateThreads() override;
29 void PreMainMessageLoopRun() override; 30 void PreMainMessageLoopRun() override;
30 bool MainMessageLoopRun(int* result_code) override; 31 bool MainMessageLoopRun(int* result_code) override;
31 32
32 private: 33 private:
33 // Android specific UI MessageLoop. 34 // Android specific UI MessageLoop.
34 scoped_ptr<base::MessageLoop> main_message_loop_; 35 std::unique_ptr<base::MessageLoop> main_message_loop_;
35 36
36 AwBrowserContext* browser_context_; // weak 37 AwBrowserContext* browser_context_; // weak
37 38
38 DISALLOW_COPY_AND_ASSIGN(AwBrowserMainParts); 39 DISALLOW_COPY_AND_ASSIGN(AwBrowserMainParts);
39 }; 40 };
40 41
41 } // namespace android_webview 42 } // namespace android_webview
42 43
43 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_ 44 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | android_webview/browser/aw_browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698