Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Unified Diff: content/shell/shell_browser_main_parts_android.cc

Issue 10035034: Implement the skeleton of an android content shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove tabs from content.xml Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/shell_browser_main_parts_android.cc
diff --git a/content/shell/shell_browser_main_parts_android.cc b/content/shell/shell_browser_main_parts_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f006befd610c696dfbee10e328af7feb5ab81918
--- /dev/null
+++ b/content/shell/shell_browser_main_parts_android.cc
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
jam 2012/04/19 21:56:26 right now we got away with using one ShellBrowserM
Ted C 2012/04/20 01:14:14 I have removed this and merged into ShellBrowserMa
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/shell/shell_browser_main_parts_android.h"
+
+#include "base/android/jni_android.h"
+#include "content/public/common/main_function_params.h"
+
+namespace content {
+
+ShellBrowserMainPartsAndroid::ShellBrowserMainPartsAndroid(
+ const content::MainFunctionParams& parameters)
+ : ShellBrowserMainParts(parameters) {
+}
+
+ShellBrowserMainPartsAndroid::~ShellBrowserMainPartsAndroid() {
+}
+
+void ShellBrowserMainPartsAndroid::PreEarlyInitialization() {
+ // TODO(tedchoc): Setup the NetworkChangeNotifier here.
+ ShellBrowserMainParts::PreEarlyInitialization();
+}
+
+MessageLoop* ShellBrowserMainPartsAndroid::GetMainMessageLoop() {
+ DCHECK(!main_message_loop_.get());
+ main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI));
+ return main_message_loop_.get();
+}
+
+void ShellBrowserMainPartsAndroid::PostMainMessageLoopStart() {
+ MessageLoopForUI::current()->Start();
+
+ ShellBrowserMainParts::PostMainMessageLoopStart();
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698