Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / webkit / common / fileapi / directory_entry.cc
blobea062b4a8c898c0b89f6e199499f723ff3dcd1a1
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.
5 #include "webkit/common/fileapi/directory_entry.h"
7 namespace storage {
9 DirectoryEntry::DirectoryEntry() : is_directory(false), size(0) {}
11 DirectoryEntry::DirectoryEntry(const std::string& name,
12 DirectoryEntryType type,
13 int64 size,
14 const base::Time& last_modified_time)
15 : name(base::FilePath::FromUTF8Unsafe(name).value()),
16 is_directory(type == DIRECTORY),
17 size(size),
18 last_modified_time(last_modified_time) {
21 } // namespace storage