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

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

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac 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 | « no previous file | content/public/renderer/render_view_observer.h » ('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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 extern int GpuMain(const content::MainFunctionParams&); 94 extern int GpuMain(const content::MainFunctionParams&);
95 extern int PluginMain(const content::MainFunctionParams&); 95 extern int PluginMain(const content::MainFunctionParams&);
96 extern int PpapiPluginMain(const content::MainFunctionParams&); 96 extern int PpapiPluginMain(const content::MainFunctionParams&);
97 extern int PpapiBrokerMain(const content::MainFunctionParams&); 97 extern int PpapiBrokerMain(const content::MainFunctionParams&);
98 extern int RendererMain(const content::MainFunctionParams&);
99 extern int WorkerMain(const content::MainFunctionParams&); 98 extern int WorkerMain(const content::MainFunctionParams&);
100 extern int UtilityMain(const content::MainFunctionParams&); 99 extern int UtilityMain(const content::MainFunctionParams&);
100 namespace content {
101 extern int RendererMain(const MainFunctionParams&);
101 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) 102 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
102 namespace content {
103 extern int ZygoteMain(const MainFunctionParams&, 103 extern int ZygoteMain(const MainFunctionParams&,
104 ZygoteForkDelegate* forkdelegate); 104 ZygoteForkDelegate* forkdelegate);
105 #endif
105 } // namespace content 106 } // namespace content
106 #endif
107 107
108 namespace { 108 namespace {
109 #if defined(OS_WIN) 109 #if defined(OS_WIN)
110 // In order to have Theme support, we need to connect to the theme service. 110 // In order to have Theme support, we need to connect to the theme service.
111 // This needs to be done before we lock down the process. Officially this 111 // This needs to be done before we lock down the process. Officially this
112 // can be done with OpenThemeData() but it fails unless you pass a valid 112 // can be done with OpenThemeData() but it fails unless you pass a valid
113 // window at least the first time. Interestingly, the very act of creating a 113 // window at least the first time. Interestingly, the very act of creating a
114 // window also sets the connection to the theme service. 114 // window also sets the connection to the theme service.
115 void EnableThemeSupportOnAllWindowStations() { 115 void EnableThemeSupportOnAllWindowStations() {
116 HDESK desktop_handle = ::OpenInputDesktop(0, FALSE, READ_CONTROL); 116 HDESK desktop_handle = ::OpenInputDesktop(0, FALSE, READ_CONTROL);
(...skipping 682 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 | « no previous file | content/public/renderer/render_view_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698