| // Copyright 2013 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 STORAGE_COMMON_FILEAPI_DIRECTORY_ENTRY_H_ |
| #define STORAGE_COMMON_FILEAPI_DIRECTORY_ENTRY_H_ |
| |
| #include <string> |
| |
| #include "base/files/file_path.h" |
| #include "base/time/time.h" |
| #include "storage/common/storage_common_export.h" |
| |
| namespace storage { |
| |
| // Holds metadata for file or directory entry. |
| struct STORAGE_COMMON_EXPORT DirectoryEntry { |
| enum DirectoryEntryType { |
| FILE, |
| DIRECTORY, |
| }; |
| |
| DirectoryEntry(); |
| DirectoryEntry(const std::string& name, DirectoryEntryType type); |
| |
| base::FilePath::StringType name; |
| bool is_directory; |
| }; |
| |
| } // namespace storage |
| |
| #endif // STORAGE_COMMON_FILEAPI_DIRECTORY_ENTRY_H_ |