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

Unified Diff: chrome/browser/extensions/api/file_handlers/app_file_handler_util.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
Index: chrome/browser/extensions/api/file_handlers/app_file_handler_util.h
diff --git a/chrome/browser/extensions/api/file_handlers/app_file_handler_util.h b/chrome/browser/extensions/api/file_handlers/app_file_handler_util.h
index a006e8492ba70c6b41023e4889839ce1d0cf861d..a2ab82bd8c53d0130632d4b59bda538be5126e01 100644
--- a/chrome/browser/extensions/api/file_handlers/app_file_handler_util.h
+++ b/chrome/browser/extensions/api/file_handlers/app_file_handler_util.h
@@ -49,6 +49,8 @@ bool FileHandlerCanHandleFile(
// Refers to a file entry that a renderer has been given access to.
struct GrantedFileEntry {
+ GrantedFileEntry();
+
std::string id;
std::string filesystem_id;
std::string registered_name;
@@ -60,11 +62,13 @@ GrantedFileEntry CreateFileEntry(
Profile* profile,
const Extension* extension,
int renderer_id,
- const base::FilePath& path);
+ const base::FilePath& path,
+ bool is_directory);
void CheckWritableFiles(
const std::vector<base::FilePath>& paths,
Profile* profile,
+ bool is_directory,
const base::Closure& on_success,
const base::Callback<void(const base::FilePath&)>& on_failure);
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698