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 "content/worker/worker_webkitplatformsupport_impl.h" | 5 #include "content/worker/worker_webkitplatformsupport_impl.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 NOTREACHED(); | 92 NOTREACHED(); |
93 return NULL; | 93 return NULL; |
94 } | 94 } |
95 | 95 |
96 WebMimeRegistry* WorkerWebKitPlatformSupportImpl::mimeRegistry() { | 96 WebMimeRegistry* WorkerWebKitPlatformSupportImpl::mimeRegistry() { |
97 return this; | 97 return this; |
98 } | 98 } |
99 | 99 |
100 WebFileSystem* WorkerWebKitPlatformSupportImpl::fileSystem() { | 100 WebFileSystem* WorkerWebKitPlatformSupportImpl::fileSystem() { |
101 if (!web_file_system_) | 101 if (!web_file_system_) |
102 web_file_system_.reset(new WebFileSystemImpl(child_thread_loop_.get())); | 102 web_file_system_.reset(new WebFileSystemImpl()); |
103 return web_file_system_.get(); | 103 return web_file_system_.get(); |
104 } | 104 } |
105 | 105 |
106 WebFileUtilities* WorkerWebKitPlatformSupportImpl::fileUtilities() { | 106 WebFileUtilities* WorkerWebKitPlatformSupportImpl::fileUtilities() { |
107 if (!file_utilities_) { | 107 if (!file_utilities_) { |
108 file_utilities_.reset(new FileUtilities(thread_safe_sender_.get())); | 108 file_utilities_.reset(new FileUtilities(thread_safe_sender_.get())); |
109 file_utilities_->set_sandbox_enabled(sandboxEnabled()); | 109 file_utilities_->set_sandbox_enabled(sandboxEnabled()); |
110 } | 110 } |
111 return file_utilities_.get(); | 111 return file_utilities_.get(); |
112 } | 112 } |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 return; | 309 return; |
310 QuotaDispatcher::ThreadSpecificInstance( | 310 QuotaDispatcher::ThreadSpecificInstance( |
311 thread_safe_sender_.get(), | 311 thread_safe_sender_.get(), |
312 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 312 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
313 storage_partition, | 313 storage_partition, |
314 static_cast<quota::StorageType>(type), | 314 static_cast<quota::StorageType>(type), |
315 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 315 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
316 } | 316 } |
317 | 317 |
318 } // namespace content | 318 } // namespace content |
OLD | NEW |