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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/sandbox_policy.cc ('k') | chrome/ppapi_plugin/ppapi_process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/ppapi_plugin/ppapi_plugin_main.cc
===================================================================
--- chrome/ppapi_plugin/ppapi_plugin_main.cc (revision 0)
+++ chrome/ppapi_plugin/ppapi_plugin_main.cc (revision 0)
@@ -0,0 +1,34 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/message_loop.h"
+#include "build/build_config.h"
+#include "chrome/common/child_process.h"
+#include "chrome/common/chrome_switches.h"
+#include "chrome/common/main_function_params.h"
+#include "chrome/ppapi_plugin/ppapi_thread.h"
+
+// Main function for starting the PPAPI plugin process.
+int PpapiPluginMain(const MainFunctionParams& parameters) {
+#if defined(OS_LINUX)
+ // On Linux we exec ourselves from /proc/self/exe, but that makes the
+ // process name that shows up in "ps" etc. for this process show as
+ // "exe" instead of "chrome" or something reasonable. Try to fix it.
+ CommandLine::SetProcTitle();
+#endif
+
+ const CommandLine& command_line = parameters.command_line_;
+ if (command_line.HasSwitch(switches::kPpapiStartupDialog)) {
+ ChildProcess::WaitForDebugger(L"Ppapi");
+ }
+
+ MessageLoop main_message_loop(MessageLoop::TYPE_UI);
+ PlatformThread::SetName("CrPPAPIMain");
+
+ ChildProcess ppapi_process;
+ ppapi_process.set_main_thread(new PpapiThread());
+
+ main_message_loop.Run();
+ return 0;
+}
Property changes on: chrome/ppapi_plugin/ppapi_plugin_main.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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