OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // Wrapper to the parameter list for the "main" entry points (browser, renderer, | 5 // Wrapper to the parameter list for the "main" entry points (browser, renderer, |
6 // plugin) to shield the call sites from the differences between platforms | 6 // plugin) to shield the call sites from the differences between platforms |
7 // (e.g., POSIX doesn't need to pass any sandbox information). | 7 // (e.g., POSIX doesn't need to pass any sandbox information). |
8 | 8 |
9 #ifndef CHROME_COMMON_MAIN_FUNCTINON_PARAMS_H_ | 9 #ifndef CHROME_COMMON_MAIN_FUNCTINON_PARAMS_H_ |
10 #define CHROME_COMMON_MAIN_FUNCTINON_PARAMS_H_ | 10 #define CHROME_COMMON_MAIN_FUNCTINON_PARAMS_H_ |
11 | 11 |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "chrome/common/sandbox_init_wrapper.h" | 13 #include "chrome/common/sandbox_init_wrapper.h" |
14 | 14 |
15 // TODO(pinkerton): |cl| should be const, but can't be due to bug 6144. | |
16 | |
17 struct MainFunctionParams { | 15 struct MainFunctionParams { |
18 MainFunctionParams(CommandLine& cl, const SandboxInitWrapper& sb) | 16 MainFunctionParams(const CommandLine& cl, const SandboxInitWrapper& sb) |
19 : command_line_(cl), sandbox_info_(sb) { } | 17 : command_line_(cl), sandbox_info_(sb) { } |
20 CommandLine& command_line_; | 18 const CommandLine& command_line_; |
21 const SandboxInitWrapper& sandbox_info_; | 19 const SandboxInitWrapper& sandbox_info_; |
22 }; | 20 }; |
23 | 21 |
24 #endif // CHROME_COMMON_MAIN_FUNCTINON_PARAMS_H_ | 22 #endif // CHROME_COMMON_MAIN_FUNCTINON_PARAMS_H_ |
OLD | NEW |