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

Unified Diff: apps/saved_files_service.h

Issue 23146016: Add support for directory access to the file system API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@simpler-write-permissions
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « apps/launcher.cc ('k') | apps/saved_files_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/saved_files_service.h
diff --git a/apps/saved_files_service.h b/apps/saved_files_service.h
index 25b96d7671af7530994f3eca9af854e7b314d1d1..4c86a0cd854d5d172c4bb598059a44776ac655a0 100644
--- a/apps/saved_files_service.h
+++ b/apps/saved_files_service.h
@@ -37,6 +37,7 @@ struct SavedFileEntry {
SavedFileEntry(const std::string& id,
const base::FilePath& path,
+ bool is_directory,
int sequence_number);
// The opaque id of this file entry.
@@ -45,6 +46,9 @@ struct SavedFileEntry {
// The path to a file entry that the app had permission to access.
base::FilePath path;
+ // Whether or not the entry refers to a directory.
+ bool is_directory;
+
// The sequence number in the LRU of the file entry. The value 0 indicates
// that the entry is not in the LRU.
int sequence_number;
@@ -65,7 +69,8 @@ class SavedFilesService : public BrowserContextKeyedService,
// object construction are automatically registered.
void RegisterFileEntry(const std::string& extension_id,
const std::string& id,
- const base::FilePath& file_path);
+ const base::FilePath& file_path,
+ bool is_directory);
// If the file with |id| is not in the queue of files to be retained
// permanently, adds the file to the back of the queue, evicting the least
« no previous file with comments | « apps/launcher.cc ('k') | apps/saved_files_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698