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

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: adding sandbox_mpp change 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 | « no previous file | webkit/fileapi/file_system_context.cc » ('j') | webkit/fileapi/test_mount_point_provider.cc » ('J')
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..46b73b18ab38514b8d6265e07fc54665ab9287d6 100644
--- a/webkit/fileapi/file_system_context.h
+++ b/webkit/fileapi/file_system_context.h
@@ -5,9 +5,11 @@
#ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
#define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
+#include <map>
#include <string>
#include "base/callback.h"
+#include "base/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/platform_file.h"
@@ -15,7 +17,6 @@
#include "webkit/fileapi/file_system_types.h"
#include "webkit/quota/special_storage_policy.h"
-class FilePath;
class GURL;
namespace base {
@@ -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 | « no previous file | webkit/fileapi/file_system_context.cc » ('j') | webkit/fileapi/test_mount_point_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698