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

Unified Diff: webkit/fileapi/file_system_context.h

Issue 10386069: Add RegisterMountPointProvider and TestMountPointProvider for testing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 8 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
« no previous file with comments | « webkit/chromeos/fileapi/cros_mount_point_provider.cc ('k') | webkit/fileapi/file_system_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_context.h
diff --git a/webkit/fileapi/file_system_context.h b/webkit/fileapi/file_system_context.h
index 472bf8aad216f8ba1fa1034e5b97791e9eb375df..c6f6f7a2233ab86919d1da562637e6c478b0fa6a 100644
--- a/webkit/fileapi/file_system_context.h
+++ b/webkit/fileapi/file_system_context.h
@@ -5,6 +5,7 @@
#ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
#define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
+#include <map>
#include <string>
#include "base/callback.h"
@@ -135,6 +136,11 @@ class FileSystemContext
const GURL& url,
int64 offset);
+ // Register a filesystem provider. The ownership of |provider| is
+ // transferred to this instance.
+ void RegisterMountPointProvider(FileSystemType type,
+ FileSystemMountPointProvider* provider);
+
private:
friend struct DefaultContextDeleter;
friend class base::DeleteHelper<FileSystemContext>;
@@ -147,11 +153,14 @@ class FileSystemContext
scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_;
- // Mount point providers.
+ // Regular mount point providers.
scoped_ptr<SandboxMountPointProvider> sandbox_provider_;
scoped_ptr<IsolatedMountPointProvider> isolated_provider_;
scoped_ptr<ExternalFileSystemMountPointProvider> external_provider_;
+ // Registered mount point providers.
+ std::map<FileSystemType, FileSystemMountPointProvider*> provider_map_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(FileSystemContext);
};
« no previous file with comments | « webkit/chromeos/fileapi/cros_mount_point_provider.cc ('k') | webkit/fileapi/file_system_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698