| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/fileapi/local_file_system_test_helper.h" | 5 #include "webkit/fileapi/local_file_system_test_helper.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 const FilePath& base_dir, | 63 const FilePath& base_dir, |
| 64 bool unlimited_quota, | 64 bool unlimited_quota, |
| 65 quota::QuotaManagerProxy* quota_manager_proxy, | 65 quota::QuotaManagerProxy* quota_manager_proxy, |
| 66 FileSystemFileUtil* file_util) { | 66 FileSystemFileUtil* file_util) { |
| 67 scoped_refptr<quota::MockSpecialStoragePolicy> special_storage_policy = | 67 scoped_refptr<quota::MockSpecialStoragePolicy> special_storage_policy = |
| 68 new quota::MockSpecialStoragePolicy; | 68 new quota::MockSpecialStoragePolicy; |
| 69 special_storage_policy->SetAllUnlimited(unlimited_quota); | 69 special_storage_policy->SetAllUnlimited(unlimited_quota); |
| 70 file_system_context_ = new FileSystemContext( | 70 file_system_context_ = new FileSystemContext( |
| 71 base::MessageLoopProxy::current(), | 71 base::MessageLoopProxy::current(), |
| 72 base::MessageLoopProxy::current(), | 72 base::MessageLoopProxy::current(), |
| 73 base::MessageLoopProxy::current(), |
| 73 special_storage_policy, | 74 special_storage_policy, |
| 74 quota_manager_proxy, | 75 quota_manager_proxy, |
| 75 base_dir, | 76 base_dir, |
| 76 CreateAllowFileAccessOptions()); | 77 CreateAllowFileAccessOptions()); |
| 77 | 78 |
| 78 if (type_ == kFileSystemTypeTest) { | 79 if (type_ == kFileSystemTypeTest) { |
| 79 file_system_context_->RegisterMountPointProvider( | 80 file_system_context_->RegisterMountPointProvider( |
| 80 type_, | 81 type_, |
| 81 new TestMountPointProvider(file_system_context_->file_task_runner(), | 82 new TestMountPointProvider(file_system_context_->file_task_runner(), |
| 82 base_dir)); | 83 base_dir)); |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 185 |
| 185 FileSystemOperationContext* | 186 FileSystemOperationContext* |
| 186 LocalFileSystemTestOriginHelper::NewOperationContext() { | 187 LocalFileSystemTestOriginHelper::NewOperationContext() { |
| 187 DCHECK(file_system_context_.get()); | 188 DCHECK(file_system_context_.get()); |
| 188 FileSystemOperationContext* context = | 189 FileSystemOperationContext* context = |
| 189 new FileSystemOperationContext(file_system_context_.get()); | 190 new FileSystemOperationContext(file_system_context_.get()); |
| 190 return context; | 191 return context; |
| 191 } | 192 } |
| 192 | 193 |
| 193 } // namespace fileapi | 194 } // namespace fileapi |
| OLD | NEW |