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

Side by Side Diff: extensions/browser/api/file_system/saved_file_entry.h

Issue 2960433002: SavedFilesServiceInterface in //extensions (Closed)
Patch Set: rebase Created 3 years, 5 months 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
(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_
OLDNEW
« no previous file with comments | « extensions/browser/api/file_system/BUILD.gn ('k') | extensions/browser/api/file_system/saved_file_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698