| OLD | NEW |
| 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 #include "content/shell/shell_browser_main.h" | 5 #include "content/shell/shell_browser_main.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 devtools_delegate_(NULL) { | 39 devtools_delegate_(NULL) { |
| 40 ShellContentBrowserClient* shell_browser_client = | 40 ShellContentBrowserClient* shell_browser_client = |
| 41 static_cast<ShellContentBrowserClient*>( | 41 static_cast<ShellContentBrowserClient*>( |
| 42 content::GetContentClient()->browser()); | 42 content::GetContentClient()->browser()); |
| 43 shell_browser_client->set_shell_browser_main_parts(this); | 43 shell_browser_client->set_shell_browser_main_parts(this); |
| 44 } | 44 } |
| 45 | 45 |
| 46 ShellBrowserMainParts::~ShellBrowserMainParts() { | 46 ShellBrowserMainParts::~ShellBrowserMainParts() { |
| 47 } | 47 } |
| 48 | 48 |
| 49 MessageLoop* ShellBrowserMainParts::GetMainMessageLoop() { |
| 50 return NULL; |
| 51 } |
| 52 |
| 49 int ShellBrowserMainParts::PreCreateThreads() { | 53 int ShellBrowserMainParts::PreCreateThreads() { |
| 50 return 0; | 54 return 0; |
| 51 } | 55 } |
| 52 | 56 |
| 53 void ShellBrowserMainParts::PreMainMessageLoopRun() { | 57 void ShellBrowserMainParts::PreMainMessageLoopRun() { |
| 54 browser_context_.reset(new ShellBrowserContext(this)); | 58 browser_context_.reset(new ShellBrowserContext(this)); |
| 55 | 59 |
| 56 Shell::PlatformInitialize(); | 60 Shell::PlatformInitialize(); |
| 57 net::NetModule::SetResourceProvider(Shell::PlatformResourceProvider); | 61 net::NetModule::SetResourceProvider(Shell::PlatformResourceProvider); |
| 58 | 62 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 87 return false; | 91 return false; |
| 88 } | 92 } |
| 89 | 93 |
| 90 ui::Clipboard* ShellBrowserMainParts::GetClipboard() { | 94 ui::Clipboard* ShellBrowserMainParts::GetClipboard() { |
| 91 if (!clipboard_.get()) | 95 if (!clipboard_.get()) |
| 92 clipboard_.reset(new ui::Clipboard()); | 96 clipboard_.reset(new ui::Clipboard()); |
| 93 return clipboard_.get(); | 97 return clipboard_.get(); |
| 94 } | 98 } |
| 95 | 99 |
| 96 } // namespace | 100 } // namespace |
| OLD | NEW |