| 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 "storage/browser/fileapi/sandbox_file_system_backend.h" | 5 #include "storage/browser/fileapi/sandbox_file_system_backend.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 FileSystemContext* context) const { | 150 FileSystemContext* context) const { |
| 151 DCHECK(CanHandleType(url.type())); | 151 DCHECK(CanHandleType(url.type())); |
| 152 DCHECK(delegate_); | 152 DCHECK(delegate_); |
| 153 return delegate_->CreateFileStreamWriter(url, offset, context, url.type()); | 153 return delegate_->CreateFileStreamWriter(url, offset, context, url.type()); |
| 154 } | 154 } |
| 155 | 155 |
| 156 FileSystemQuotaUtil* SandboxFileSystemBackend::GetQuotaUtil() { | 156 FileSystemQuotaUtil* SandboxFileSystemBackend::GetQuotaUtil() { |
| 157 return delegate_; | 157 return delegate_; |
| 158 } | 158 } |
| 159 | 159 |
| 160 const UpdateObserverList* SandboxFileSystemBackend::GetUpdateObservers( |
| 161 FileSystemType type) const { |
| 162 return delegate_->GetUpdateObservers(type); |
| 163 } |
| 164 |
| 165 const ChangeObserverList* SandboxFileSystemBackend::GetChangeObservers( |
| 166 FileSystemType type) const { |
| 167 return delegate_->GetChangeObservers(type); |
| 168 } |
| 169 |
| 170 const AccessObserverList* SandboxFileSystemBackend::GetAccessObservers( |
| 171 FileSystemType type) const { |
| 172 return delegate_->GetAccessObservers(type); |
| 173 } |
| 174 |
| 160 SandboxFileSystemBackendDelegate::OriginEnumerator* | 175 SandboxFileSystemBackendDelegate::OriginEnumerator* |
| 161 SandboxFileSystemBackend::CreateOriginEnumerator() { | 176 SandboxFileSystemBackend::CreateOriginEnumerator() { |
| 162 DCHECK(delegate_); | 177 DCHECK(delegate_); |
| 163 return delegate_->CreateOriginEnumerator(); | 178 return delegate_->CreateOriginEnumerator(); |
| 164 } | 179 } |
| 165 | 180 |
| 166 } // namespace storage | 181 } // namespace storage |
| OLD | NEW |