OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "webkit/fileapi/sandboxed_file_system_context.h" |
| 6 |
| 7 #include "base/file_path.h" |
| 8 #include "base/message_loop_proxy.h" |
| 9 #include "webkit/fileapi/file_system_path_manager.h" |
| 10 #include "webkit/fileapi/file_system_quota_manager.h" |
| 11 |
| 12 namespace fileapi { |
| 13 |
| 14 SandboxedFileSystemContext::SandboxedFileSystemContext( |
| 15 scoped_refptr<base::MessageLoopProxy> file_message_loop, |
| 16 const FilePath& profile_path, |
| 17 bool is_incognito, |
| 18 bool allow_file_access, |
| 19 bool unlimited_quota) |
| 20 : path_manager_(new FileSystemPathManager( |
| 21 file_message_loop, profile_path, is_incognito, allow_file_access)), |
| 22 quota_manager_(new FileSystemQuotaManager(allow_file_access, |
| 23 unlimited_quota)) { |
| 24 } |
| 25 |
| 26 SandboxedFileSystemContext::~SandboxedFileSystemContext() { |
| 27 } |
| 28 |
| 29 void SandboxedFileSystemContext::Shutdown() { |
| 30 path_manager_.reset(); |
| 31 quota_manager_.reset(); |
| 32 } |
| 33 |
| 34 } // namespace fileapi |
OLD | NEW |