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

Unified Diff: chrome/browser/chromeos/fileapi/file_system_backend.h

Issue 2450713002: arc: Register ARC content file system (Closed)
Patch Set: Address comments Created 4 years, 2 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/chromeos/fileapi/file_system_backend.h
diff --git a/chrome/browser/chromeos/fileapi/file_system_backend.h b/chrome/browser/chromeos/fileapi/file_system_backend.h
index 9e393c9ff9e73510351463d668b4519cebfa5ef1..d2a04540e4d1d6ab0c0772ab664495a847ab7b2f 100644
--- a/chrome/browser/chromeos/fileapi/file_system_backend.h
+++ b/chrome/browser/chromeos/fileapi/file_system_backend.h
@@ -67,15 +67,12 @@ class FileSystemBackend : public storage::ExternalFileSystemBackend {
public:
using storage::FileSystemBackend::OpenFileSystemCallback;
- // FileSystemBackend will take an ownership of a |mount_points|
- // reference. On the other hand, |system_mount_points| will be kept as a raw
- // pointer and it should outlive FileSystemBackend instance.
- // The ownerships of |drive_delegate| and |file_system_provider_delegate| are
- // also taken.
+ // |system_mount_points| should outlive FileSystemBackend instance.
FileSystemBackend(
- FileSystemBackendDelegate* drive_delegate,
- FileSystemBackendDelegate* file_system_provider_delegate,
- FileSystemBackendDelegate* mtp_delegate,
+ std::unique_ptr<FileSystemBackendDelegate> drive_delegate,
+ std::unique_ptr<FileSystemBackendDelegate> file_system_provider_delegate,
+ std::unique_ptr<FileSystemBackendDelegate> mtp_delegate,
+ std::unique_ptr<FileSystemBackendDelegate> arc_content_delegate,
scoped_refptr<storage::ExternalMountPoints> mount_points,
storage::ExternalMountPoints* system_mount_points);
~FileSystemBackend() override;
@@ -155,6 +152,9 @@ class FileSystemBackend : public storage::ExternalFileSystemBackend {
// The delegate instance for the MTP file system related operations.
std::unique_ptr<FileSystemBackendDelegate> mtp_delegate_;
+ // The delegate instance for the ARC content file system related operations.
+ std::unique_ptr<FileSystemBackendDelegate> arc_content_delegate_;
+
// Mount points specific to the owning context (i.e. per-profile mount
// points).
//
« no previous file with comments | « chrome/browser/chromeos/fileapi/external_file_url_util.cc ('k') | chrome/browser/chromeos/fileapi/file_system_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698