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

Side by Side Diff: base/command_line.h

Issue 10735044: Remove #pragma once. Just from base/ for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « base/chromeos/chromeos_version.h ('k') | base/compiler_specific.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This class works with command lines: building and parsing. 5 // This class works with command lines: building and parsing.
6 // Arguments with prefixes ('--', '-', and on Windows, '/') are switches. 6 // Arguments with prefixes ('--', '-', and on Windows, '/') are switches.
7 // Switches will precede all other arguments without switch prefixes. 7 // Switches will precede all other arguments without switch prefixes.
8 // Switches can optionally have values, delimited by '=', e.g., "-switch=value". 8 // Switches can optionally have values, delimited by '=', e.g., "-switch=value".
9 // An argument of "--" will terminate switch parsing during initialization, 9 // An argument of "--" will terminate switch parsing during initialization,
10 // interpreting subsequent tokens as non-switch arguments, regardless of prefix. 10 // interpreting subsequent tokens as non-switch arguments, regardless of prefix.
11 11
12 // There is a singleton read-only CommandLine that represents the command line 12 // There is a singleton read-only CommandLine that represents the command line
13 // that the current process was started with. It must be initialized in main(). 13 // that the current process was started with. It must be initialized in main().
14 14
15 #ifndef BASE_COMMAND_LINE_H_ 15 #ifndef BASE_COMMAND_LINE_H_
16 #define BASE_COMMAND_LINE_H_ 16 #define BASE_COMMAND_LINE_H_
17 #pragma once
18 17
19 #include <stddef.h> 18 #include <stddef.h>
20 #include <map> 19 #include <map>
21 #include <string> 20 #include <string>
22 #include <vector> 21 #include <vector>
23 22
24 #include "base/base_export.h" 23 #include "base/base_export.h"
25 #include "build/build_config.h" 24 #include "build/build_config.h"
26 25
27 class FilePath; 26 class FilePath;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 StringVector argv_; 157 StringVector argv_;
159 158
160 // Parsed-out switch keys and values. 159 // Parsed-out switch keys and values.
161 SwitchMap switches_; 160 SwitchMap switches_;
162 161
163 // The index after the program and switches, any arguments start here. 162 // The index after the program and switches, any arguments start here.
164 size_t begin_args_; 163 size_t begin_args_;
165 }; 164 };
166 165
167 #endif // BASE_COMMAND_LINE_H_ 166 #endif // BASE_COMMAND_LINE_H_
OLDNEW
« no previous file with comments | « base/chromeos/chromeos_version.h ('k') | base/compiler_specific.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698