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

Unified Diff: chrome/browser/extensions/api/file_handlers/app_file_handler_util.h

Issue 14607023: Add support for persistent file access in apps. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 years, 7 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 ebfe8166c5455b60a78d69ea17fec440883a32e5..6d9681fd4fd787e8db78efac55d447288174e641 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
@@ -47,22 +47,6 @@ bool FileHandlerCanHandleFile(
const std::string& mime_type,
const base::FilePath& path);
-// Represents a file entry that a user has given an extension permission to
-// access. Intended to be persisted to disk (in the Preferences file), so should
-// remain serializable.
-struct SavedFileEntry {
- SavedFileEntry(const std::string& id,
- const base::FilePath& path,
- bool writable)
- : id(id),
- path(path),
- writable(writable) {}
-
- std::string id;
- base::FilePath path;
- bool writable;
-};
-
// Refers to a file entry that a renderer has been given access to.
struct GrantedFileEntry {
std::string id;
@@ -79,19 +63,6 @@ GrantedFileEntry CreateFileEntry(
const base::FilePath& path,
bool writable);
-// Methods to adjust the file entry preferences for a given extension.
-void AddSavedFileEntry(ExtensionPrefs* prefs,
- const std::string& extension_id,
- const std::string& file_entry_id,
- const base::FilePath& file_path,
- bool writable);
-void GetSavedFileEntries(
- const ExtensionPrefs* prefs,
- const std::string& extension_id,
- std::vector<app_file_handler_util::SavedFileEntry>* out);
-void ClearSavedFileEntries(ExtensionPrefs* prefs,
- const std::string& extension_id);
-
} // namespace app_file_handler_util
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698