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/file_system_context.h" | 5 #include "webkit/fileapi/file_system_context.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 const FilePath& profile_path, | 54 const FilePath& profile_path, |
55 const FileSystemOptions& options) | 55 const FileSystemOptions& options) |
56 : file_task_runner_(file_task_runner), | 56 : file_task_runner_(file_task_runner), |
57 io_task_runner_(io_task_runner), | 57 io_task_runner_(io_task_runner), |
58 quota_manager_proxy_(quota_manager_proxy), | 58 quota_manager_proxy_(quota_manager_proxy), |
59 sandbox_provider_( | 59 sandbox_provider_( |
60 new SandboxMountPointProvider( | 60 new SandboxMountPointProvider( |
61 file_task_runner, | 61 file_task_runner, |
62 profile_path, | 62 profile_path, |
63 options)), | 63 options)), |
64 isolated_provider_(new IsolatedMountPointProvider) { | 64 isolated_provider_(new IsolatedMountPointProvider(profile_path)) { |
65 if (quota_manager_proxy) { | 65 if (quota_manager_proxy) { |
66 quota_manager_proxy->RegisterClient(CreateQuotaClient( | 66 quota_manager_proxy->RegisterClient(CreateQuotaClient( |
67 this, options.is_incognito())); | 67 this, options.is_incognito())); |
68 } | 68 } |
69 #if defined(OS_CHROMEOS) | 69 #if defined(OS_CHROMEOS) |
70 external_provider_.reset( | 70 external_provider_.reset( |
71 new chromeos::CrosMountPointProvider(special_storage_policy)); | 71 new chromeos::CrosMountPointProvider(special_storage_policy)); |
72 #endif | 72 #endif |
73 } | 73 } |
74 | 74 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 if (!io_task_runner_->RunsTasksOnCurrentThread() && | 211 if (!io_task_runner_->RunsTasksOnCurrentThread() && |
212 io_task_runner_->DeleteSoon(FROM_HERE, this)) { | 212 io_task_runner_->DeleteSoon(FROM_HERE, this)) { |
213 return; | 213 return; |
214 } | 214 } |
215 STLDeleteContainerPairSecondPointers(provider_map_.begin(), | 215 STLDeleteContainerPairSecondPointers(provider_map_.begin(), |
216 provider_map_.end()); | 216 provider_map_.end()); |
217 delete this; | 217 delete this; |
218 } | 218 } |
219 | 219 |
220 } // namespace fileapi | 220 } // namespace fileapi |
OLD | NEW |