Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: storage/common/fileapi/directory_entry.h

Issue 1432403003: Do not call stat() when reading directories via File API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed FSP tests. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef STORAGE_COMMON_FILEAPI_DIRECTORY_ENTRY_H_ 5 #ifndef STORAGE_COMMON_FILEAPI_DIRECTORY_ENTRY_H_
6 #define STORAGE_COMMON_FILEAPI_DIRECTORY_ENTRY_H_ 6 #define STORAGE_COMMON_FILEAPI_DIRECTORY_ENTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "storage/common/storage_common_export.h" 13 #include "storage/common/storage_common_export.h"
14 14
15 namespace storage { 15 namespace storage {
16 16
17 // Holds metadata for file or directory entry. 17 // Holds metadata for file or directory entry.
18 struct STORAGE_COMMON_EXPORT DirectoryEntry { 18 struct STORAGE_COMMON_EXPORT DirectoryEntry {
19 enum DirectoryEntryType { 19 enum DirectoryEntryType {
20 FILE, 20 FILE,
21 DIRECTORY, 21 DIRECTORY,
22 }; 22 };
23 23
24 DirectoryEntry(); 24 DirectoryEntry();
25 DirectoryEntry(const std::string& name, 25 DirectoryEntry(const std::string& name, DirectoryEntryType type);
26 DirectoryEntryType type,
27 int64 size,
28 const base::Time& last_modified_time);
29 26
30 base::FilePath::StringType name; 27 base::FilePath::StringType name;
31 bool is_directory; 28 bool is_directory;
32 int64 size;
33 base::Time last_modified_time;
34 }; 29 };
35 30
36 } // namespace storage 31 } // namespace storage
37 32
38 #endif // STORAGE_COMMON_FILEAPI_DIRECTORY_ENTRY_H_ 33 #endif // STORAGE_COMMON_FILEAPI_DIRECTORY_ENTRY_H_
OLDNEW
« no previous file with comments | « storage/browser/fileapi/file_system_dir_url_request_job.cc ('k') | storage/common/fileapi/directory_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698