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

Unified Diff: webkit/fileapi/sandboxed_file_system_context.h

Issue 4054003: FileSystem code cleanup 2nd cut - introduce SandboxedFileSystemOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 10 years, 1 month 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/fileapi/file_system_operation.h ('k') | webkit/fileapi/sandboxed_file_system_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/sandboxed_file_system_context.h
diff --git a/webkit/fileapi/sandboxed_file_system_context.h b/webkit/fileapi/sandboxed_file_system_context.h
new file mode 100644
index 0000000000000000000000000000000000000000..ad6e2b8f3de561ceac44cc73514bc1f18f606196
--- /dev/null
+++ b/webkit/fileapi/sandboxed_file_system_context.h
@@ -0,0 +1,48 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_FILEAPI_SANDBOXED_FILE_SYSTEM_CONTEXT_H_
+#define WEBKIT_FILEAPI_SANDBOXED_FILE_SYSTEM_CONTEXT_H_
+
+#include "base/ref_counted.h"
+#include "base/scoped_ptr.h"
+
+class FilePath;
+
+namespace base {
+class MessageLoopProxy;
+}
+
+namespace fileapi {
+
+class FileSystemPathManager;
+class FileSystemQuotaManager;
+
+// This class keeps and provides a sandboxed file system context.
+class SandboxedFileSystemContext {
+ public:
+ SandboxedFileSystemContext(
+ scoped_refptr<base::MessageLoopProxy> file_message_loop,
+ const FilePath& profile_path,
+ bool is_incognito,
+ bool allow_file_access_from_files,
+ bool unlimited_quota);
+ ~SandboxedFileSystemContext();
+
+ void Shutdown();
+
+ FileSystemPathManager* path_manager() { return path_manager_.get(); }
+ FileSystemQuotaManager* quota_manager() { return quota_manager_.get(); }
+
+ private:
+ bool allow_file_access_from_files_;
+ scoped_ptr<FileSystemPathManager> path_manager_;
+ scoped_ptr<FileSystemQuotaManager> quota_manager_;
+
+ DISALLOW_IMPLICIT_CONSTRUCTORS(SandboxedFileSystemContext);
+};
+
+} // namespace fileapi
+
+#endif // WEBKIT_FILEAPI_SANDBOXED_FILE_SYSTEM_CONTEXT_H_
« no previous file with comments | « webkit/fileapi/file_system_operation.h ('k') | webkit/fileapi/sandboxed_file_system_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698