OLD | NEW |
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 #ifndef BASE_FILES_FILE_ENUMERATOR_H_ | 5 #ifndef BASE_FILES_FILE_ENUMERATOR_H_ |
6 #define BASE_FILES_FILE_ENUMERATOR_H_ | 6 #define BASE_FILES_FILE_ENUMERATOR_H_ |
7 | 7 |
8 #include <stack> | 8 #include <stack> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/base_export.h" | 11 #include "base/base_export.h" |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/time.h" | 14 #include "base/time/time.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 | 16 |
17 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
18 #include <windows.h> | 18 #include <windows.h> |
19 #elif defined(OS_POSIX) | 19 #elif defined(OS_POSIX) |
20 #include <sys/stat.h> | 20 #include <sys/stat.h> |
21 #include <unistd.h> | 21 #include <unistd.h> |
22 #endif | 22 #endif |
23 | 23 |
24 namespace base { | 24 namespace base { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // A stack that keeps track of which subdirectories we still need to | 147 // A stack that keeps track of which subdirectories we still need to |
148 // enumerate in the breadth-first search. | 148 // enumerate in the breadth-first search. |
149 std::stack<FilePath> pending_paths_; | 149 std::stack<FilePath> pending_paths_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(FileEnumerator); | 151 DISALLOW_COPY_AND_ASSIGN(FileEnumerator); |
152 }; | 152 }; |
153 | 153 |
154 } // namespace base | 154 } // namespace base |
155 | 155 |
156 #endif // BASE_FILES_FILE_ENUMERATOR_H_ | 156 #endif // BASE_FILES_FILE_ENUMERATOR_H_ |
OLD | NEW |