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

Unified Diff: storage/browser/fileapi/isolated_file_system_backend.h

Issue 838323003: app_shell: Fix crash on chrome.runtime.getPackageDirectoryEntry for cros (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (filesystem) remove spam Created 5 years, 11 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: storage/browser/fileapi/isolated_file_system_backend.h
diff --git a/storage/browser/fileapi/isolated_file_system_backend.h b/storage/browser/fileapi/isolated_file_system_backend.h
index 2c1237970d1aa742184a6c908124f78655357dd6..bd13db491505d71c4bfff2ce27213542e28998c6 100644
--- a/storage/browser/fileapi/isolated_file_system_backend.h
+++ b/storage/browser/fileapi/isolated_file_system_backend.h
@@ -15,7 +15,8 @@ class AsyncFileUtilAdapter;
class IsolatedFileSystemBackend : public FileSystemBackend {
public:
- IsolatedFileSystemBackend();
+ IsolatedFileSystemBackend(bool use_for_type_native_local,
+ bool use_for_type_platform_app);
~IsolatedFileSystemBackend() override;
// FileSystemBackend implementation.
@@ -55,6 +56,14 @@ class IsolatedFileSystemBackend : public FileSystemBackend {
FileSystemType type) const override;
private:
+ // Whether this object should handle native local filesystem types. Some
+ // platforms (e.g. Chrome OS) may provide a different FileSystemBackend to
+ // handle those types.
+ const bool use_for_type_native_local_;
+
+ // As above but for platform webapps.
+ const bool use_for_type_platform_app_;
+
scoped_ptr<AsyncFileUtilAdapter> isolated_file_util_;
scoped_ptr<AsyncFileUtilAdapter> dragged_file_util_;
scoped_ptr<AsyncFileUtilAdapter> transient_file_util_;
« no previous file with comments | « storage/browser/fileapi/file_system_context.cc ('k') | storage/browser/fileapi/isolated_file_system_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698