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

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

Issue 2200693002: Refactor CrashDump*Manager to use a shared CrashDumpObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 2 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 | « android_webview/BUILD.gn ('k') | android_webview/browser/aw_browser_main_parts.cc » ('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 (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> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "content/public/browser/browser_main_parts.h" 12 #include "content/public/browser/browser_main_parts.h"
13 13
14 namespace base { 14 namespace base {
15 class MessageLoop; 15 class MessageLoop;
16 } 16 }
17 17
18 namespace breakpad {
19 class CrashDumpObserver;
20 }
21
18 namespace android_webview { 22 namespace android_webview {
19 23
20 class AwBrowserContext; 24 class AwBrowserContext;
25 class AwBrowserTerminator;
21 class AwContentBrowserClient; 26 class AwContentBrowserClient;
22 27
23 class AwBrowserMainParts : public content::BrowserMainParts { 28 class AwBrowserMainParts : public content::BrowserMainParts {
24 public: 29 public:
25 explicit AwBrowserMainParts(AwContentBrowserClient* browser_client); 30 explicit AwBrowserMainParts(AwContentBrowserClient* browser_client);
26 ~AwBrowserMainParts() override; 31 ~AwBrowserMainParts() override;
27 32
28 // Overriding methods from content::BrowserMainParts. 33 // Overriding methods from content::BrowserMainParts.
29 void PreEarlyInitialization() override; 34 void PreEarlyInitialization() override;
30 int PreCreateThreads() override; 35 int PreCreateThreads() override;
31 void PreMainMessageLoopRun() override; 36 void PreMainMessageLoopRun() override;
32 bool MainMessageLoopRun(int* result_code) override; 37 bool MainMessageLoopRun(int* result_code) override;
33 38
34 private: 39 private:
35 // Android specific UI MessageLoop. 40 // Android specific UI MessageLoop.
36 std::unique_ptr<base::MessageLoop> main_message_loop_; 41 std::unique_ptr<base::MessageLoop> main_message_loop_;
42 std::unique_ptr<breakpad::CrashDumpObserver> crash_dump_observer_;
37 43
38 AwContentBrowserClient* browser_client_; 44 AwContentBrowserClient* browser_client_;
39 45
40 DISALLOW_COPY_AND_ASSIGN(AwBrowserMainParts); 46 DISALLOW_COPY_AND_ASSIGN(AwBrowserMainParts);
41 }; 47 };
42 48
43 } // namespace android_webview 49 } // namespace android_webview
44 50
45 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_ 51 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_MAIN_PARTS_H_
OLDNEW
« no previous file with comments | « android_webview/BUILD.gn ('k') | android_webview/browser/aw_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698