| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/media_galleries/fileapi/media_file_system_backend.h" | 5 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> |
| 8 | 9 |
| 9 #include "base/bind.h" | 10 #include "base/bind.h" |
| 10 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 11 #include "base/logging.h" | 12 #include "base/logging.h" |
| 12 #include "base/message_loop/message_loop_proxy.h" | 13 #include "base/message_loop/message_loop_proxy.h" |
| 13 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
| 14 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 17 #include "base/threading/sequenced_worker_pool.h" | 18 #include "base/threading/sequenced_worker_pool.h" |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 #if defined(OS_MACOSX) | 264 #if defined(OS_MACOSX) |
| 264 case fileapi::kFileSystemTypeIphoto: | 265 case fileapi::kFileSystemTypeIphoto: |
| 265 return iphoto_file_util_.get(); | 266 return iphoto_file_util_.get(); |
| 266 #endif // defined(OS_MACOSX) | 267 #endif // defined(OS_MACOSX) |
| 267 default: | 268 default: |
| 268 NOTREACHED(); | 269 NOTREACHED(); |
| 269 } | 270 } |
| 270 return NULL; | 271 return NULL; |
| 271 } | 272 } |
| 272 | 273 |
| 274 fileapi::WatcherManager* MediaFileSystemBackend::GetWatcherManager( |
| 275 fileapi::FileSystemType type) { |
| 276 return NULL; |
| 277 } |
| 278 |
| 273 fileapi::CopyOrMoveFileValidatorFactory* | 279 fileapi::CopyOrMoveFileValidatorFactory* |
| 274 MediaFileSystemBackend::GetCopyOrMoveFileValidatorFactory( | 280 MediaFileSystemBackend::GetCopyOrMoveFileValidatorFactory( |
| 275 fileapi::FileSystemType type, base::File::Error* error_code) { | 281 fileapi::FileSystemType type, base::File::Error* error_code) { |
| 276 DCHECK(error_code); | 282 DCHECK(error_code); |
| 277 *error_code = base::File::FILE_OK; | 283 *error_code = base::File::FILE_OK; |
| 278 switch (type) { | 284 switch (type) { |
| 279 case fileapi::kFileSystemTypeNativeMedia: | 285 case fileapi::kFileSystemTypeNativeMedia: |
| 280 case fileapi::kFileSystemTypeDeviceMedia: | 286 case fileapi::kFileSystemTypeDeviceMedia: |
| 281 case fileapi::kFileSystemTypeIphoto: | 287 case fileapi::kFileSystemTypeIphoto: |
| 282 case fileapi::kFileSystemTypeItunes: | 288 case fileapi::kFileSystemTypeItunes: |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 url.path(), | 351 url.path(), |
| 346 offset, | 352 offset, |
| 347 fileapi::FileStreamWriter::OPEN_EXISTING_FILE)); | 353 fileapi::FileStreamWriter::OPEN_EXISTING_FILE)); |
| 348 } | 354 } |
| 349 | 355 |
| 350 fileapi::FileSystemQuotaUtil* | 356 fileapi::FileSystemQuotaUtil* |
| 351 MediaFileSystemBackend::GetQuotaUtil() { | 357 MediaFileSystemBackend::GetQuotaUtil() { |
| 352 // No quota support. | 358 // No quota support. |
| 353 return NULL; | 359 return NULL; |
| 354 } | 360 } |
| OLD | NEW |