| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 case fileapi::kFileSystemTypeRestrictedNativeLocal: | 241 case fileapi::kFileSystemTypeRestrictedNativeLocal: |
| 242 return local_file_util_.get(); | 242 return local_file_util_.get(); |
| 243 case fileapi::kFileSystemTypeDeviceMediaAsFileStorage: | 243 case fileapi::kFileSystemTypeDeviceMediaAsFileStorage: |
| 244 return mtp_delegate_->GetAsyncFileUtil(type); | 244 return mtp_delegate_->GetAsyncFileUtil(type); |
| 245 default: | 245 default: |
| 246 NOTREACHED(); | 246 NOTREACHED(); |
| 247 } | 247 } |
| 248 return NULL; | 248 return NULL; |
| 249 } | 249 } |
| 250 | 250 |
| 251 fileapi::WatcherManager* FileSystemBackend::GetWatcherManager( |
| 252 fileapi::FileSystemType type) { |
| 253 return NULL; |
| 254 } |
| 255 |
| 251 fileapi::CopyOrMoveFileValidatorFactory* | 256 fileapi::CopyOrMoveFileValidatorFactory* |
| 252 FileSystemBackend::GetCopyOrMoveFileValidatorFactory( | 257 FileSystemBackend::GetCopyOrMoveFileValidatorFactory( |
| 253 fileapi::FileSystemType type, base::File::Error* error_code) { | 258 fileapi::FileSystemType type, base::File::Error* error_code) { |
| 254 DCHECK(error_code); | 259 DCHECK(error_code); |
| 255 *error_code = base::File::FILE_OK; | 260 *error_code = base::File::FILE_OK; |
| 256 return NULL; | 261 return NULL; |
| 257 } | 262 } |
| 258 | 263 |
| 259 fileapi::FileSystemOperation* FileSystemBackend::CreateFileSystemOperation( | 264 fileapi::FileSystemOperation* FileSystemBackend::CreateFileSystemOperation( |
| 260 const fileapi::FileSystemURL& url, | 265 const fileapi::FileSystemURL& url, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 } | 361 } |
| 357 | 362 |
| 358 bool FileSystemBackend::GetVirtualPath( | 363 bool FileSystemBackend::GetVirtualPath( |
| 359 const base::FilePath& filesystem_path, | 364 const base::FilePath& filesystem_path, |
| 360 base::FilePath* virtual_path) { | 365 base::FilePath* virtual_path) { |
| 361 return mount_points_->GetVirtualPath(filesystem_path, virtual_path) || | 366 return mount_points_->GetVirtualPath(filesystem_path, virtual_path) || |
| 362 system_mount_points_->GetVirtualPath(filesystem_path, virtual_path); | 367 system_mount_points_->GetVirtualPath(filesystem_path, virtual_path); |
| 363 } | 368 } |
| 364 | 369 |
| 365 } // namespace chromeos | 370 } // namespace chromeos |
| OLD | NEW |