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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 callback, | 78 callback, |
79 GetFileSystemRootURI(url.origin(), url.type())); | 79 GetFileSystemRootURI(url.origin(), url.type())); |
80 } | 80 } |
81 | 81 |
82 AsyncFileUtil* SandboxFileSystemBackend::GetAsyncFileUtil( | 82 AsyncFileUtil* SandboxFileSystemBackend::GetAsyncFileUtil( |
83 FileSystemType type) { | 83 FileSystemType type) { |
84 DCHECK(delegate_); | 84 DCHECK(delegate_); |
85 return delegate_->file_util(); | 85 return delegate_->file_util(); |
86 } | 86 } |
87 | 87 |
| 88 WatcherManager* SandboxFileSystemBackend::GetWatcherManager( |
| 89 FileSystemType type) { |
| 90 return NULL; |
| 91 } |
| 92 |
88 CopyOrMoveFileValidatorFactory* | 93 CopyOrMoveFileValidatorFactory* |
89 SandboxFileSystemBackend::GetCopyOrMoveFileValidatorFactory( | 94 SandboxFileSystemBackend::GetCopyOrMoveFileValidatorFactory( |
90 FileSystemType type, | 95 FileSystemType type, |
91 base::File::Error* error_code) { | 96 base::File::Error* error_code) { |
92 DCHECK(error_code); | 97 DCHECK(error_code); |
93 *error_code = base::File::FILE_OK; | 98 *error_code = base::File::FILE_OK; |
94 return NULL; | 99 return NULL; |
95 } | 100 } |
96 | 101 |
97 FileSystemOperation* SandboxFileSystemBackend::CreateFileSystemOperation( | 102 FileSystemOperation* SandboxFileSystemBackend::CreateFileSystemOperation( |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 return delegate_; | 157 return delegate_; |
153 } | 158 } |
154 | 159 |
155 SandboxFileSystemBackendDelegate::OriginEnumerator* | 160 SandboxFileSystemBackendDelegate::OriginEnumerator* |
156 SandboxFileSystemBackend::CreateOriginEnumerator() { | 161 SandboxFileSystemBackend::CreateOriginEnumerator() { |
157 DCHECK(delegate_); | 162 DCHECK(delegate_); |
158 return delegate_->CreateOriginEnumerator(); | 163 return delegate_->CreateOriginEnumerator(); |
159 } | 164 } |
160 | 165 |
161 } // namespace storage | 166 } // namespace storage |
OLD | NEW |