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

Unified Diff: chrome/common/main_function_params.h

Issue 17426: remove chrome dependencies from win sandboxing headers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/main_function_params.h
===================================================================
--- chrome/common/main_function_params.h (revision 0)
+++ chrome/common/main_function_params.h (revision 0)
@@ -0,0 +1,24 @@
+// Copyright (c) 2009 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.
+
+// Wrapper to the parameter list for the "main" entry points (browser, renderer,
+// plugin) to shield the call sites from the differences between platforms
+// (e.g., POSIX doesn't need to pass any sandbox information).
+
+#ifndef CHROME_COMMON_MAIN_FUNCTINON_PARAMS_H_
+#define CHROME_COMMON_MAIN_FUNCTINON_PARAMS_H_
+
+#include "base/command_line.h"
+#include "chrome/common/sandbox_init_wrapper.h"
+
+// TODO(pinkerton): |cl| should be const, but can't be due to bug 6144.
+
+struct MainFunctionParams {
+ MainFunctionParams(CommandLine& cl, const SandboxInitWrapper& sb)
+ : command_line_(cl), sandbox_info_(sb) { }
brettw 2009/01/09 18:10:47 Indent this 2 more spaces.
+ CommandLine& command_line_;
+ const SandboxInitWrapper& sandbox_info_;
+};
+
+#endif // CHROME_COMMON_MAIN_FUNCTINON_PARAMS_H_
Property changes on: chrome/common/main_function_params.h
___________________________________________________________________
Name: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698