| OLD | NEW |
| 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" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 virtual void InitializeMessageLoopContext(); | 54 virtual void InitializeMessageLoopContext(); |
| 55 | 55 |
| 56 void set_browser_context(ShellBrowserContext* context) { | 56 void set_browser_context(ShellBrowserContext* context) { |
| 57 browser_context_.reset(context); | 57 browser_context_.reset(context); |
| 58 } | 58 } |
| 59 void set_off_the_record_browser_context(ShellBrowserContext* context) { | 59 void set_off_the_record_browser_context(ShellBrowserContext* context) { |
| 60 off_the_record_browser_context_.reset(context); | 60 off_the_record_browser_context_.reset(context); |
| 61 } | 61 } |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 #if defined(OS_ANDROID) | |
| 65 std::unique_ptr<breakpad::CrashDumpManager> crash_dump_manager_; | |
| 66 #endif | |
| 67 std::unique_ptr<net::NetLog> net_log_; | 64 std::unique_ptr<net::NetLog> net_log_; |
| 68 std::unique_ptr<ShellBrowserContext> browser_context_; | 65 std::unique_ptr<ShellBrowserContext> browser_context_; |
| 69 std::unique_ptr<ShellBrowserContext> off_the_record_browser_context_; | 66 std::unique_ptr<ShellBrowserContext> off_the_record_browser_context_; |
| 70 | 67 |
| 71 // For running content_browsertests. | 68 // For running content_browsertests. |
| 72 const MainFunctionParams parameters_; | 69 const MainFunctionParams parameters_; |
| 73 bool run_message_loop_; | 70 bool run_message_loop_; |
| 74 | 71 |
| 72 #if defined(OS_ANDROID) |
| 73 scoped_refptr<breakpad::CrashDumpManager> crash_dump_manager_; |
| 74 #endif |
| 75 |
| 75 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 76 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace content | 79 } // namespace content |
| 79 | 80 |
| 80 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ | 81 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |