| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/chromeos/fileapi/file_system_backend.h" | 5 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "chrome/browser/chromeos/fileapi/file_access_permissions.h" | 10 #include "chrome/browser/chromeos/fileapi/file_access_permissions.h" |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 case storage::kFileSystemTypeRestrictedNativeLocal: | 242 case storage::kFileSystemTypeRestrictedNativeLocal: |
| 243 return local_file_util_.get(); | 243 return local_file_util_.get(); |
| 244 case storage::kFileSystemTypeDeviceMediaAsFileStorage: | 244 case storage::kFileSystemTypeDeviceMediaAsFileStorage: |
| 245 return mtp_delegate_->GetAsyncFileUtil(type); | 245 return mtp_delegate_->GetAsyncFileUtil(type); |
| 246 default: | 246 default: |
| 247 NOTREACHED(); | 247 NOTREACHED(); |
| 248 } | 248 } |
| 249 return NULL; | 249 return NULL; |
| 250 } | 250 } |
| 251 | 251 |
| 252 storage::WatcherManager* FileSystemBackend::GetWatcherManager( |
| 253 storage::FileSystemType type) { |
| 254 return NULL; |
| 255 } |
| 256 |
| 252 storage::CopyOrMoveFileValidatorFactory* | 257 storage::CopyOrMoveFileValidatorFactory* |
| 253 FileSystemBackend::GetCopyOrMoveFileValidatorFactory( | 258 FileSystemBackend::GetCopyOrMoveFileValidatorFactory( |
| 254 storage::FileSystemType type, | 259 storage::FileSystemType type, |
| 255 base::File::Error* error_code) { | 260 base::File::Error* error_code) { |
| 256 DCHECK(error_code); | 261 DCHECK(error_code); |
| 257 *error_code = base::File::FILE_OK; | 262 *error_code = base::File::FILE_OK; |
| 258 return NULL; | 263 return NULL; |
| 259 } | 264 } |
| 260 | 265 |
| 261 storage::FileSystemOperation* FileSystemBackend::CreateFileSystemOperation( | 266 storage::FileSystemOperation* FileSystemBackend::CreateFileSystemOperation( |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 } | 381 } |
| 377 | 382 |
| 378 bool FileSystemBackend::GetVirtualPath( | 383 bool FileSystemBackend::GetVirtualPath( |
| 379 const base::FilePath& filesystem_path, | 384 const base::FilePath& filesystem_path, |
| 380 base::FilePath* virtual_path) { | 385 base::FilePath* virtual_path) { |
| 381 return mount_points_->GetVirtualPath(filesystem_path, virtual_path) || | 386 return mount_points_->GetVirtualPath(filesystem_path, virtual_path) || |
| 382 system_mount_points_->GetVirtualPath(filesystem_path, virtual_path); | 387 system_mount_points_->GetVirtualPath(filesystem_path, virtual_path); |
| 383 } | 388 } |
| 384 | 389 |
| 385 } // namespace chromeos | 390 } // namespace chromeos |
| OLD | NEW |