diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-07 20:07:32 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-07 20:07:32 +0000 |
commit | f3adb5c4f36fd3233d0c0baad5eaef76da462a87 (patch) | |
tree | 2c468c275e56a060d397ad2d9ad407387c8c83a0 /base/command_line.h | |
parent | c17be48b88e3c8614a333a27d79341de7aeeb684 (diff) | |
download | chromium_src-f3adb5c4f36fd3233d0c0baad5eaef76da462a87.zip chromium_src-f3adb5c4f36fd3233d0c0baad5eaef76da462a87.tar.gz chromium_src-f3adb5c4f36fd3233d0c0baad5eaef76da462a87.tar.bz2 |
Pinkerton's port/fix-up of command-line processing to work cross-platform.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/command_line.h')
-rw-r--r-- | base/command_line.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/base/command_line.h b/base/command_line.h index f1b7ade..4f24f26 100644 --- a/base/command_line.h +++ b/base/command_line.h @@ -50,9 +50,13 @@ class CommandLine { // the current process. CommandLine(); +#if defined(OS_WIN) // Creates a parsed version of the given command-line string. - // The program name is assumed to be the first item in the string. + // The program name is assumed to be the first item in the string. CommandLine(const std::wstring& command_line); +#elif defined(OS_POSIX) + CommandLine(int argc, const char** argv); +#endif ~CommandLine(); @@ -112,7 +116,7 @@ class CommandLine { // A pointer to the parsed version of the command line. Data* data_; - + DISALLOW_EVIL_CONSTRUCTORS(CommandLine); }; |