summaryrefslogtreecommitdiffstats
path: root/webkit/common/fileapi/directory_entry.cc
blob: af10904850ee117d7db497da33467182c10f0e94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 "webkit/common/fileapi/directory_entry.h"

namespace fileapi {

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 fileapi