1 // Copyright 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef WEBKIT_COMMON_FILEAPI_DIRECTORY_ENTRY_H_ 6 #define WEBKIT_COMMON_FILEAPI_DIRECTORY_ENTRY_H_ 7 8 #include "base/basictypes.h" 9 #include "base/files/file_path.h" 10 #include "base/time/time.h" 11 #include "webkit/common/webkit_storage_common_export.h" 12 13 namespace fileapi { 14 15 // Holds metadata for file or directory entry. 16 struct WEBKIT_STORAGE_COMMON_EXPORT DirectoryEntry { 17 enum DirectoryEntryType { 18 FILE, 19 DIRECTORY, 20 }; 21 22 DirectoryEntry(); 23 DirectoryEntry(const std::string& name, 24 DirectoryEntryType type, 25 int64 size, 26 const base::Time& last_modified_time); 27 28 base::FilePath::StringType name; 29 bool is_directory; 30 int64 size; 31 base::Time last_modified_time; 32 }; 33 34 } 35 36 #endif // WEBKIT_COMMON_FILEAPI_DIRECTORY_ENTRY_H_ 37