diff options
Diffstat (limited to 'storage/common/fileapi/directory_entry.cc')
| -rw-r--r-- | storage/common/fileapi/directory_entry.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/storage/common/fileapi/directory_entry.cc b/storage/common/fileapi/directory_entry.cc new file mode 100644 index 0000000..477ede8 --- /dev/null +++ b/storage/common/fileapi/directory_entry.cc @@ -0,0 +1,21 @@ +// 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. + +#include "storage/common/fileapi/directory_entry.h" + +namespace storage { + +DirectoryEntry::DirectoryEntry() : is_directory(false), size(0) {} + +DirectoryEntry::DirectoryEntry(const std::string& name, + DirectoryEntryType type, + int64 size, + const base::Time& last_modified_time) + : name(base::FilePath::FromUTF8Unsafe(name).value()), + is_directory(type == DIRECTORY), + size(size), + last_modified_time(last_modified_time) { +} + +} // namespace storage |
