summaryrefslogtreecommitdiffstats
path: root/base/dir_reader_fallback.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-10 19:41:43 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-10 19:41:43 +0000
commita0607da9446e3ec76a7ced32502f8c7e71654d53 (patch)
tree958a5b77aa00de5981641531e683b565c6d5b3cf /base/dir_reader_fallback.h
parent651b77c761749949fc7f148e3c20fe203a61bf7d (diff)
downloadchromium_src-a0607da9446e3ec76a7ced32502f8c7e71654d53.zip
chromium_src-a0607da9446e3ec76a7ced32502f8c7e71654d53.tar.gz
chromium_src-a0607da9446e3ec76a7ced32502f8c7e71654d53.tar.bz2
Revert "POSIX: don't allocate memory after forking."
Appears to break tlslite on the Mac. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41190 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/dir_reader_fallback.h')
-rw-r--r--base/dir_reader_fallback.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/base/dir_reader_fallback.h b/base/dir_reader_fallback.h
deleted file mode 100644
index c8f02e6..0000000
--- a/base/dir_reader_fallback.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BASE_DIR_READER_FALLBACK_H_
-#define BASE_DIR_READER_FALLBACK_H_
-
-namespace base {
-
-class DirReaderFallback {
- public:
- // Open a directory. If |IsValid| is true, then |Next| can be called to start
- // the iteration at the beginning of the directory.
- explicit DirReaderFallback(const char* directory_path) { }
- // After construction, IsValid returns true iff the directory was
- // successfully opened.
- bool IsValid() const { return false; }
- // Move to the next entry returning false if the iteration is complete.
- bool Next() { return false; }
- // Return the name of the current directory entry.
- const char* name() { return 0;}
- // Return the file descriptor which is being used.
- int fd() const { return -1; }
- // Returns true if this is a no-op fallback class (for testing).
- static bool IsFallback() { return true; }
-};
-
-} // namespace base
-
-#endif // BASE_DIR_READER_FALLBACK_H_