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

Side by Side Diff: chrome/ppapi_plugin/ppapi_plugin_main.cc

Issue 3915002: Out of process Pepper (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « chrome/common/sandbox_policy.cc ('k') | chrome/ppapi_plugin/ppapi_process.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
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 "base/message_loop.h"
6 #include "build/build_config.h"
7 #include "chrome/common/child_process.h"
8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/common/main_function_params.h"
10 #include "chrome/ppapi_plugin/ppapi_thread.h"
11
12 // Main function for starting the PPAPI plugin process.
13 int PpapiPluginMain(const MainFunctionParams& parameters) {
14 #if defined(OS_LINUX)
15 // On Linux we exec ourselves from /proc/self/exe, but that makes the
16 // process name that shows up in "ps" etc. for this process show as
17 // "exe" instead of "chrome" or something reasonable. Try to fix it.
18 CommandLine::SetProcTitle();
19 #endif
20
21 const CommandLine& command_line = parameters.command_line_;
22 if (command_line.HasSwitch(switches::kPpapiStartupDialog)) {
23 ChildProcess::WaitForDebugger(L"Ppapi");
24 }
25
26 MessageLoop main_message_loop(MessageLoop::TYPE_UI);
27 PlatformThread::SetName("CrPPAPIMain");
28
29 ChildProcess ppapi_process;
30 ppapi_process.set_main_thread(new PpapiThread());
31
32 main_message_loop.Run();
33 return 0;
34 }
OLDNEW
« no previous file with comments | « chrome/common/sandbox_policy.cc ('k') | chrome/ppapi_plugin/ppapi_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698