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

Side by Side Diff: content/shell/browser/shell_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: cast compile error Created 4 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "content/public/browser/browser_main_parts.h" 12 #include "content/public/browser/browser_main_parts.h"
13 #include "content/public/common/main_function_params.h" 13 #include "content/public/common/main_function_params.h"
14 #include "content/shell/browser/shell_browser_context.h" 14 #include "content/shell/browser/shell_browser_context.h"
15 15
16 namespace base {
17 class Thread;
18 }
19
16 #if defined(OS_ANDROID) 20 #if defined(OS_ANDROID)
17 namespace breakpad { 21 namespace breakpad {
18 class CrashDumpManager; 22 class CrashDumpManager;
19 } 23 }
20 #endif 24 #endif
21 25
22 namespace base {
23 class Thread;
24 }
25
26 namespace devtools_http_handler { 26 namespace devtools_http_handler {
27 class DevToolsHttpHandler; 27 class DevToolsHttpHandler;
28 } 28 }
29 29
30 namespace net { 30 namespace net {
31 class NetLog; 31 class NetLog;
32 } 32 }
33 33
34 namespace content { 34 namespace content {
35 35
(...skipping 30 matching lines...) Expand all
66 virtual void InitializeMessageLoopContext(); 66 virtual void InitializeMessageLoopContext();
67 67
68 void set_browser_context(ShellBrowserContext* context) { 68 void set_browser_context(ShellBrowserContext* context) {
69 browser_context_.reset(context); 69 browser_context_.reset(context);
70 } 70 }
71 void set_off_the_record_browser_context(ShellBrowserContext* context) { 71 void set_off_the_record_browser_context(ShellBrowserContext* context) {
72 off_the_record_browser_context_.reset(context); 72 off_the_record_browser_context_.reset(context);
73 } 73 }
74 74
75 private: 75 private:
76 #if defined(OS_ANDROID)
77 std::unique_ptr<breakpad::CrashDumpManager> crash_dump_manager_;
78 #endif
79 std::unique_ptr<net::NetLog> net_log_; 76 std::unique_ptr<net::NetLog> net_log_;
80 std::unique_ptr<ShellBrowserContext> browser_context_; 77 std::unique_ptr<ShellBrowserContext> browser_context_;
81 std::unique_ptr<ShellBrowserContext> off_the_record_browser_context_; 78 std::unique_ptr<ShellBrowserContext> off_the_record_browser_context_;
82 79
83 // For running content_browsertests. 80 // For running content_browsertests.
84 const MainFunctionParams parameters_; 81 const MainFunctionParams parameters_;
85 bool run_message_loop_; 82 bool run_message_loop_;
86 83
87 std::unique_ptr<devtools_http_handler::DevToolsHttpHandler> 84 std::unique_ptr<devtools_http_handler::DevToolsHttpHandler>
88 devtools_http_handler_; 85 devtools_http_handler_;
89 86
87 #if defined(OS_ANDROID)
88 std::unique_ptr<breakpad::CrashDumpManager> crash_dump_manager_;
89 #endif
90
90 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); 91 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts);
91 }; 92 };
92 93
93 } // namespace content 94 } // namespace content
94 95
95 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ 96 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698