| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/public/browser/browser_main_parts.h" | 10 #include "content/public/browser/browser_main_parts.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 return off_the_record_browser_context_.get(); | 53 return off_the_record_browser_context_.get(); |
| 54 } | 54 } |
| 55 | 55 |
| 56 net::NetLog* net_log() { return net_log_.get(); } | 56 net::NetLog* net_log() { return net_log_.get(); } |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 virtual void InitializeBrowserContexts(); | 59 virtual void InitializeBrowserContexts(); |
| 60 virtual void InitializeMessageLoopContext(); | 60 virtual void InitializeMessageLoopContext(); |
| 61 | 61 |
| 62 void set_browser_context(ShellBrowserContext* context) { | 62 void set_browser_context(ShellBrowserContext* context) { |
| 63 LOG(ERROR) << "auraclank: ShellBrowserMainParts::set_browser_context, " |
| 64 << "context=" << context; |
| 63 browser_context_.reset(context); | 65 browser_context_.reset(context); |
| 64 } | 66 } |
| 65 void set_off_the_record_browser_context(ShellBrowserContext* context) { | 67 void set_off_the_record_browser_context(ShellBrowserContext* context) { |
| 66 off_the_record_browser_context_.reset(context); | 68 off_the_record_browser_context_.reset(context); |
| 67 } | 69 } |
| 68 | 70 |
| 69 private: | 71 private: |
| 70 #if defined(OS_ANDROID) | 72 #if defined(OS_ANDROID) |
| 71 scoped_ptr<breakpad::CrashDumpManager> crash_dump_manager_; | 73 scoped_ptr<breakpad::CrashDumpManager> crash_dump_manager_; |
| 72 #endif | 74 #endif |
| 73 scoped_ptr<net::NetLog> net_log_; | 75 scoped_ptr<net::NetLog> net_log_; |
| 74 scoped_ptr<ShellBrowserContext> browser_context_; | 76 scoped_ptr<ShellBrowserContext> browser_context_; |
| 75 scoped_ptr<ShellBrowserContext> off_the_record_browser_context_; | 77 scoped_ptr<ShellBrowserContext> off_the_record_browser_context_; |
| 76 | 78 |
| 77 // For running content_browsertests. | 79 // For running content_browsertests. |
| 78 const MainFunctionParams parameters_; | 80 const MainFunctionParams parameters_; |
| 79 bool run_message_loop_; | 81 bool run_message_loop_; |
| 80 | 82 |
| 81 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_; | 83 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_; |
| 82 | 84 |
| 83 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 85 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 } // namespace content | 88 } // namespace content |
| 87 | 89 |
| 88 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ | 90 #endif // CONTENT_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |