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

Side by Side Diff: chrome/common/main_function_params.h

Issue 18248: CommandLine API rework (Closed)
Patch Set: fixes 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 unified diff | Download patch
« no previous file with comments | « chrome/common/logging_chrome_uitest.cc ('k') | chrome/common/pref_service_uitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/common/logging_chrome_uitest.cc ('k') | chrome/common/pref_service_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698