OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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. |
| 4 |
| 5 #ifndef EXTENSIONS_BROWSER_API_FILE_SYSTEM_SAVED_FILE_ENTRY_H_ |
| 6 #define EXTENSIONS_BROWSER_API_FILE_SYSTEM_SAVED_FILE_ENTRY_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/files/file_path.h" |
| 11 |
| 12 namespace extensions { |
| 13 |
| 14 // Represents a file entry that a user has given an app permission to |
| 15 // access. Must be serializable for persisting to disk. |
| 16 struct SavedFileEntry { |
| 17 SavedFileEntry(); |
| 18 |
| 19 SavedFileEntry(const std::string& id, |
| 20 const base::FilePath& path, |
| 21 bool is_directory, |
| 22 int sequence_number); |
| 23 |
| 24 // The opaque id of this file entry. |
| 25 std::string id; |
| 26 |
| 27 // The path to a file entry that the app had permission to access. |
| 28 base::FilePath path; |
| 29 |
| 30 // Whether or not the entry refers to a directory. |
| 31 bool is_directory; |
| 32 |
| 33 // The sequence number in the LRU of the file entry. The value 0 indicates |
| 34 // that the entry is not in the LRU. |
| 35 int sequence_number; |
| 36 }; |
| 37 |
| 38 } // namespace extensions |
| 39 |
| 40 #endif // EXTENSIONS_BROWSER_API_FILE_SYSTEM_SAVED_FILE_ENTRY_H_ |
OLD | NEW |