OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/shell/shell_browser_main_parts_android.h" |
| 6 |
| 7 #include "base/android/jni_android.h" |
| 8 #include "content/public/common/main_function_params.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 ShellBrowserMainPartsAndroid::ShellBrowserMainPartsAndroid( |
| 13 const content::MainFunctionParams& parameters) |
| 14 : ShellBrowserMainParts(parameters) { |
| 15 } |
| 16 |
| 17 ShellBrowserMainPartsAndroid::~ShellBrowserMainPartsAndroid() { |
| 18 } |
| 19 |
| 20 void ShellBrowserMainPartsAndroid::PreEarlyInitialization() { |
| 21 // TODO(tedchoc): Setup the NetworkChangeNotifier here. |
| 22 ShellBrowserMainParts::PreEarlyInitialization(); |
| 23 } |
| 24 |
| 25 MessageLoop* ShellBrowserMainPartsAndroid::GetMainMessageLoop() { |
| 26 DCHECK(!main_message_loop_.get()); |
| 27 main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI)); |
| 28 return main_message_loop_.get(); |
| 29 } |
| 30 |
| 31 void ShellBrowserMainPartsAndroid::PostMainMessageLoopStart() { |
| 32 MessageLoopForUI::current()->Start(); |
| 33 |
| 34 ShellBrowserMainParts::PostMainMessageLoopStart(); |
| 35 } |
| 36 |
| 37 } // namespace content |
OLD | NEW |