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

Side by Side Diff: content/app/content_main_runner.cc

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 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
« no previous file with comments | « base/threading/thread_restrictions.h ('k') | content/browser/browser_main_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/public/app/content_main_runner.h" 5 #include "content/public/app/content_main_runner.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "base/allocator/allocator_extension.h" 9 #include "base/allocator/allocator_extension.h"
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #endif 84 #endif
85 85
86 #endif // OS_POSIX 86 #endif // OS_POSIX
87 87
88 #if !defined(OS_MACOSX) && defined(USE_TCMALLOC) 88 #if !defined(OS_MACOSX) && defined(USE_TCMALLOC)
89 extern "C" { 89 extern "C" {
90 int tc_set_new_mode(int mode); 90 int tc_set_new_mode(int mode);
91 } 91 }
92 #endif 92 #endif
93 93
94 namespace content {
94 extern int GpuMain(const content::MainFunctionParams&); 95 extern int GpuMain(const content::MainFunctionParams&);
95 namespace content {
96 extern int PluginMain(const content::MainFunctionParams&); 96 extern int PluginMain(const content::MainFunctionParams&);
97 extern int PpapiPluginMain(const MainFunctionParams&); 97 extern int PpapiPluginMain(const MainFunctionParams&);
98 extern int PpapiBrokerMain(const MainFunctionParams&); 98 extern int PpapiBrokerMain(const MainFunctionParams&);
99 extern int RendererMain(const content::MainFunctionParams&); 99 extern int RendererMain(const content::MainFunctionParams&);
100 extern int UtilityMain(const MainFunctionParams&); 100 extern int UtilityMain(const MainFunctionParams&);
101 extern int WorkerMain(const MainFunctionParams&); 101 extern int WorkerMain(const MainFunctionParams&);
102 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) 102 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
103 extern int ZygoteMain(const MainFunctionParams&, 103 extern int ZygoteMain(const MainFunctionParams&,
104 ZygoteForkDelegate* forkdelegate); 104 ZygoteForkDelegate* forkdelegate);
105 #endif 105 #endif
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 799
800 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); 800 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl);
801 }; 801 };
802 802
803 // static 803 // static
804 ContentMainRunner* ContentMainRunner::Create() { 804 ContentMainRunner* ContentMainRunner::Create() {
805 return new ContentMainRunnerImpl(); 805 return new ContentMainRunnerImpl();
806 } 806 }
807 807
808 } // namespace content 808 } // namespace content
OLDNEW
« no previous file with comments | « base/threading/thread_restrictions.h ('k') | content/browser/browser_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698