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 | |
53 int ShellBrowserMainParts::PreCreateThreads() { | 49 int ShellBrowserMainParts::PreCreateThreads() { |
54 return 0; | 50 return 0; |
55 } | 51 } |
56 | 52 |
57 void ShellBrowserMainParts::PreMainMessageLoopRun() { | 53 void ShellBrowserMainParts::PreMainMessageLoopRun() { |
58 browser_context_.reset(new ShellBrowserContext(this)); | 54 browser_context_.reset(new ShellBrowserContext(this)); |
59 | 55 |
60 Shell::PlatformInitialize(); | 56 Shell::PlatformInitialize(); |
61 net::NetModule::SetResourceProvider(Shell::PlatformResourceProvider); | 57 net::NetModule::SetResourceProvider(Shell::PlatformResourceProvider); |
62 | 58 |
(...skipping 28 matching lines...) Expand all Loading... |
91 return false; | 87 return false; |
92 } | 88 } |
93 | 89 |
94 ui::Clipboard* ShellBrowserMainParts::GetClipboard() { | 90 ui::Clipboard* ShellBrowserMainParts::GetClipboard() { |
95 if (!clipboard_.get()) | 91 if (!clipboard_.get()) |
96 clipboard_.reset(new ui::Clipboard()); | 92 clipboard_.reset(new ui::Clipboard()); |
97 return clipboard_.get(); | 93 return clipboard_.get(); |
98 } | 94 } |
99 | 95 |
100 } // namespace | 96 } // namespace |
OLD | NEW |