Use a less compiler-specific way for preventing inlining / tail-call optimization.
[chromium-blink-merge.git] / storage / common / fileapi / directory_entry.h
blob1b06828efdf7e7480d2694ab23a3d4bec19b9784
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 #ifndef STORAGE_COMMON_FILEAPI_DIRECTORY_ENTRY_H_
6 #define STORAGE_COMMON_FILEAPI_DIRECTORY_ENTRY_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/files/file_path.h"
12 #include "base/time/time.h"
13 #include "storage/common/storage_common_export.h"
15 namespace storage {
17 // Holds metadata for file or directory entry.
18 struct STORAGE_COMMON_EXPORT DirectoryEntry {
19 enum DirectoryEntryType {
20 FILE,
21 DIRECTORY,
24 DirectoryEntry();
25 DirectoryEntry(const std::string& name,
26 DirectoryEntryType type,
27 int64 size,
28 const base::Time& last_modified_time);
30 base::FilePath::StringType name;
31 bool is_directory;
32 int64 size;
33 base::Time last_modified_time;
36 } // namespace storage
38 #endif // STORAGE_COMMON_FILEAPI_DIRECTORY_ENTRY_H_