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

Side by Side Diff: base/command_line.cc

Issue 6759017: iwyu: Cleanup in the following files: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright again. Created 9 years, 8 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/command_line.h ('k') | base/cpu.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "base/command_line.h" 5 #include "base/command_line.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <ostream>
8 9
10 #include "base/basictypes.h"
9 #include "base/file_path.h" 11 #include "base/file_path.h"
10 #include "base/file_util.h"
11 #include "base/logging.h" 12 #include "base/logging.h"
12 #include "base/memory/singleton.h"
13 #include "base/string_split.h" 13 #include "base/string_split.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "base/sys_string_conversions.h"
16 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
17 #include "build/build_config.h" 16 #include "build/build_config.h"
18 17
19 #if defined(OS_WIN) 18 #if defined(OS_WIN)
20 #include <windows.h> 19 #include <windows.h>
21 #include <shellapi.h> 20 #include <shellapi.h>
22 #elif defined(OS_POSIX)
23 #include <limits.h>
24 #include <stdlib.h>
25 #include <unistd.h>
26 #endif 21 #endif
27 22
28 CommandLine* CommandLine::current_process_commandline_ = NULL; 23 CommandLine* CommandLine::current_process_commandline_ = NULL;
29 24
30 namespace { 25 namespace {
31 typedef CommandLine::StringType::value_type CharType; 26 typedef CommandLine::StringType::value_type CharType;
32 27
33 const CharType kSwitchTerminator[] = FILE_PATH_LITERAL("--"); 28 const CharType kSwitchTerminator[] = FILE_PATH_LITERAL("--");
34 const CharType kSwitchValueSeparator[] = FILE_PATH_LITERAL("="); 29 const CharType kSwitchValueSeparator[] = FILE_PATH_LITERAL("=");
35 // Since we use a lazy match, make sure that longer versions (like "--") are 30 // Since we use a lazy match, make sure that longer versions (like "--") are
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 } 474 }
480 } 475 }
481 476
482 if (args) 477 if (args)
483 LocalFree(args); 478 LocalFree(args);
484 } 479 }
485 #endif 480 #endif
486 481
487 CommandLine::CommandLine() { 482 CommandLine::CommandLine() {
488 } 483 }
OLDNEW
« no previous file with comments | « base/command_line.h ('k') | base/cpu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698