| 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/browser/fileapi/sandbox_file_system_backend.h" | 5 #include "webkit/browser/fileapi/sandbox_file_system_backend.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/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 callback, | 80 callback, |
| 81 GetFileSystemRootURI(url.origin(), url.type())); | 81 GetFileSystemRootURI(url.origin(), url.type())); |
| 82 } | 82 } |
| 83 | 83 |
| 84 AsyncFileUtil* SandboxFileSystemBackend::GetAsyncFileUtil( | 84 AsyncFileUtil* SandboxFileSystemBackend::GetAsyncFileUtil( |
| 85 FileSystemType type) { | 85 FileSystemType type) { |
| 86 DCHECK(delegate_); | 86 DCHECK(delegate_); |
| 87 return delegate_->file_util(); | 87 return delegate_->file_util(); |
| 88 } | 88 } |
| 89 | 89 |
| 90 WatcherManager* SandboxFileSystemBackend::GetWatcherManager( |
| 91 FileSystemType type) { |
| 92 return NULL; |
| 93 } |
| 94 |
| 90 CopyOrMoveFileValidatorFactory* | 95 CopyOrMoveFileValidatorFactory* |
| 91 SandboxFileSystemBackend::GetCopyOrMoveFileValidatorFactory( | 96 SandboxFileSystemBackend::GetCopyOrMoveFileValidatorFactory( |
| 92 FileSystemType type, | 97 FileSystemType type, |
| 93 base::File::Error* error_code) { | 98 base::File::Error* error_code) { |
| 94 DCHECK(error_code); | 99 DCHECK(error_code); |
| 95 *error_code = base::File::FILE_OK; | 100 *error_code = base::File::FILE_OK; |
| 96 return NULL; | 101 return NULL; |
| 97 } | 102 } |
| 98 | 103 |
| 99 FileSystemOperation* SandboxFileSystemBackend::CreateFileSystemOperation( | 104 FileSystemOperation* SandboxFileSystemBackend::CreateFileSystemOperation( |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 return delegate_; | 154 return delegate_; |
| 150 } | 155 } |
| 151 | 156 |
| 152 SandboxFileSystemBackendDelegate::OriginEnumerator* | 157 SandboxFileSystemBackendDelegate::OriginEnumerator* |
| 153 SandboxFileSystemBackend::CreateOriginEnumerator() { | 158 SandboxFileSystemBackend::CreateOriginEnumerator() { |
| 154 DCHECK(delegate_); | 159 DCHECK(delegate_); |
| 155 return delegate_->CreateOriginEnumerator(); | 160 return delegate_->CreateOriginEnumerator(); |
| 156 } | 161 } |
| 157 | 162 |
| 158 } // namespace fileapi | 163 } // namespace fileapi |
| OLD | NEW |