| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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/process_util.h" | 5 #include "base/process_util.h" |
| 6 | 6 |
| 7 #include <ctype.h> | 7 #include <ctype.h> |
| 8 #include <dirent.h> | 8 #include <dirent.h> |
| 9 #include <fcntl.h> | 9 #include <fcntl.h> |
| 10 #include <unistd.h> | 10 #include <unistd.h> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <sys/types.h> | 12 #include <sys/types.h> |
| 13 #include <sys/wait.h> | 13 #include <sys/wait.h> |
| 14 | 14 |
| 15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/string_tokenizer.h" | 17 #include "base/string_tokenizer.h" |
| 18 #include "base/string_util.h" | 18 #include "base/string_util.h" |
| 19 #include "base/time.h" | |
| 20 | 19 |
| 21 namespace { | 20 namespace { |
| 22 | 21 |
| 23 enum ParsingState { | 22 enum ParsingState { |
| 24 KEY_NAME, | 23 KEY_NAME, |
| 25 KEY_VALUE | 24 KEY_VALUE |
| 26 }; | 25 }; |
| 27 | 26 |
| 28 } // namespace | 27 } // namespace |
| 29 | 28 |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 (*io_counters).WriteTransferCount = StringToInt64(tokenizer.token()); | 231 (*io_counters).WriteTransferCount = StringToInt64(tokenizer.token()); |
| 233 } | 232 } |
| 234 state = KEY_NAME; | 233 state = KEY_NAME; |
| 235 break; | 234 break; |
| 236 } | 235 } |
| 237 } | 236 } |
| 238 return true; | 237 return true; |
| 239 } | 238 } |
| 240 | 239 |
| 241 } // namespace base | 240 } // namespace base |
| OLD | NEW |