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

Side by Side Diff: content/shell/shell_browser_main_parts.cc

Issue 10443091: Make BrowserMainParts have an empty implementation to make embedding easier. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
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_parts.h" 5 #include "content/shell/shell_browser_main_parts.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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 #if !defined(OS_MACOSX) 51 #if !defined(OS_MACOSX)
52 void ShellBrowserMainParts::PreMainMessageLoopStart() { 52 void ShellBrowserMainParts::PreMainMessageLoopStart() {
53 #if defined(OS_ANDROID) 53 #if defined(OS_ANDROID)
54 MessageLoopForUI::InitMessagePumpForUIFactory(&CreateMessagePumpForShell); 54 MessageLoopForUI::InitMessagePumpForUIFactory(&CreateMessagePumpForShell);
55 MessageLoopForUI::current()->Start(); 55 MessageLoopForUI::current()->Start();
56 #endif 56 #endif
57 } 57 }
58 #endif 58 #endif
59 59
60 int ShellBrowserMainParts::PreCreateThreads() {
61 return 0;
62 }
63
64 void ShellBrowserMainParts::PreEarlyInitialization() { 60 void ShellBrowserMainParts::PreEarlyInitialization() {
65 #if defined(OS_ANDROID) 61 #if defined(OS_ANDROID)
66 // TODO(tedchoc): Setup the NetworkChangeNotifier here. 62 // TODO(tedchoc): Setup the NetworkChangeNotifier here.
67 #endif 63 #endif
68 } 64 }
69 65
70 void ShellBrowserMainParts::PreMainMessageLoopRun() { 66 void ShellBrowserMainParts::PreMainMessageLoopRun() {
71 browser_context_.reset(new ShellBrowserContext); 67 browser_context_.reset(new ShellBrowserContext);
72 68
73 Shell::PlatformInitialize(); 69 Shell::PlatformInitialize();
(...skipping 21 matching lines...) Expand all
95 NULL); 91 NULL);
96 } 92 }
97 } 93 }
98 94
99 void ShellBrowserMainParts::PostMainMessageLoopRun() { 95 void ShellBrowserMainParts::PostMainMessageLoopRun() {
100 if (devtools_delegate_) 96 if (devtools_delegate_)
101 devtools_delegate_->Stop(); 97 devtools_delegate_->Stop();
102 browser_context_.reset(); 98 browser_context_.reset();
103 } 99 }
104 100
105 bool ShellBrowserMainParts::MainMessageLoopRun(int* result_code) {
106 return false;
107 }
108
109 } // namespace 101 } // namespace
OLDNEW
« no previous file with comments | « content/shell/shell_browser_main_parts.h ('k') | ui/views/examples/content_client/examples_browser_main_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698