summaryrefslogtreecommitdiffstats
path: root/base/file_util.h
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-14 23:43:29 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-14 23:43:29 +0000
commita82026e0a7c0b5f3672f92242d4180cc52328add (patch)
tree30c2625d8d44d1b12c79e963256b655d28a45a71 /base/file_util.h
parent1346ecce2c718b2237cbb8ba95e9674f2e381943 (diff)
downloadchromium_src-a82026e0a7c0b5f3672f92242d4180cc52328add.zip
chromium_src-a82026e0a7c0b5f3672f92242d4180cc52328add.tar.gz
chromium_src-a82026e0a7c0b5f3672f92242d4180cc52328add.tar.bz2
Un-recursify FileEnumerator::Next().
BUG=58368 TEST=file_util_unittest.cc passes Review URL: http://codereview.chromium.org/3751001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62677 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r--base/file_util.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/base/file_util.h b/base/file_util.h
index 553f520..bba7e2d 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -449,6 +449,8 @@ class FileEnumerator {
#if defined(OS_WIN)
+ // True when find_data_ is valid.
+ bool has_find_data_;
WIN32_FIND_DATA find_data_;
HANDLE find_handle_;
#elif defined(OS_POSIX)
@@ -473,10 +475,6 @@ class FileEnumerator {
FILE_TYPE file_type_;
FilePath::StringType pattern_; // Empty when we want to find everything.
- // Set to true when there is a find operation open. This way, we can lazily
- // start the operations when the caller calls Next().
- bool is_in_find_op_;
-
// A stack that keeps track of which subdirectories we still need to
// enumerate in the breadth-first search.
std::stack<FilePath> pending_paths_;