From a1a130f7da9191abecf15b3c27e2aa7ee1faacb3 Mon Sep 17 00:00:00 2001 From: "pinkerton@google.com" <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> Date: Fri, 9 Jan 2009 20:28:44 +0000 Subject: remove chrome dependencies from win sandboxing headers. Wrap sandbox code to make the main routine a little cleaner. Unify the parameters of each of the "main" entry points so we can more easily abstract platform differences in the future. BUG=5323 Review URL: http://codereview.chromium.org/17426 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7825 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/plugin/plugin_main.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'chrome/plugin') diff --git a/chrome/plugin/plugin_main.cc b/chrome/plugin/plugin_main.cc index 94f50bc..ac9fd90 100644 --- a/chrome/plugin/plugin_main.cc +++ b/chrome/plugin/plugin_main.cc @@ -8,14 +8,18 @@ #include "chrome/common/chrome_constants.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/logging_chrome.h" +#include "chrome/common/main_function_params.h" #include "chrome/common/win_util.h" #include "chrome/plugin/plugin_process.h" #include "chrome/test/injection_test_dll.h" #include "sandbox/src/sandbox.h" // mainline routine for running as the plugin process -int PluginMain(CommandLine &parsed_command_line, - sandbox::TargetServices* target_services) { +int PluginMain(const MainFunctionParams& parameters) { + CommandLine& parsed_command_line = parameters.command_line_; + sandbox::TargetServices* target_services = + parameters.sandbox_info_.TargetServices(); + // The main thread of the plugin services IO. MessageLoopForIO main_message_loop; std::wstring app_name = chrome::kBrowserAppName; -- cgit v1.1