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

Unified Diff: webkit/fileapi/sandboxed_file_system_context.cc

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/sandboxed_file_system_context.h ('k') | webkit/fileapi/sandboxed_file_system_operation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/sandboxed_file_system_context.cc
diff --git a/webkit/fileapi/sandboxed_file_system_context.cc b/webkit/fileapi/sandboxed_file_system_context.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b71f57c205fc9e36f333cc74236f2faf56f1457f
--- /dev/null
+++ b/webkit/fileapi/sandboxed_file_system_context.cc
@@ -0,0 +1,34 @@
+// 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.
+
+#include "webkit/fileapi/sandboxed_file_system_context.h"
+
+#include "base/file_path.h"
+#include "base/message_loop_proxy.h"
+#include "webkit/fileapi/file_system_path_manager.h"
+#include "webkit/fileapi/file_system_quota_manager.h"
+
+namespace fileapi {
+
+SandboxedFileSystemContext::SandboxedFileSystemContext(
+ scoped_refptr<base::MessageLoopProxy> file_message_loop,
+ const FilePath& profile_path,
+ bool is_incognito,
+ bool allow_file_access,
+ bool unlimited_quota)
+ : path_manager_(new FileSystemPathManager(
+ file_message_loop, profile_path, is_incognito, allow_file_access)),
+ quota_manager_(new FileSystemQuotaManager(allow_file_access,
+ unlimited_quota)) {
+}
+
+SandboxedFileSystemContext::~SandboxedFileSystemContext() {
+}
+
+void SandboxedFileSystemContext::Shutdown() {
+ path_manager_.reset();
+ quota_manager_.reset();
+}
+
+} // namespace fileapi
« no previous file with comments | « webkit/fileapi/sandboxed_file_system_context.h ('k') | webkit/fileapi/sandboxed_file_system_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698