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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698