| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 #if defined(OS_MACOSX) | 263 #if defined(OS_MACOSX) |
| 263 case storage::kFileSystemTypeIphoto: | 264 case storage::kFileSystemTypeIphoto: |
| 264 return iphoto_file_util_.get(); | 265 return iphoto_file_util_.get(); |
| 265 #endif // defined(OS_MACOSX) | 266 #endif // defined(OS_MACOSX) |
| 266 default: | 267 default: |
| 267 NOTREACHED(); | 268 NOTREACHED(); |
| 268 } | 269 } |
| 269 return NULL; | 270 return NULL; |
| 270 } | 271 } |
| 271 | 272 |
| 273 storage::WatcherManager* MediaFileSystemBackend::GetWatcherManager( |
| 274 storage::FileSystemType type) { |
| 275 return NULL; |
| 276 } |
| 277 |
| 272 storage::CopyOrMoveFileValidatorFactory* | 278 storage::CopyOrMoveFileValidatorFactory* |
| 273 MediaFileSystemBackend::GetCopyOrMoveFileValidatorFactory( | 279 MediaFileSystemBackend::GetCopyOrMoveFileValidatorFactory( |
| 274 storage::FileSystemType type, | 280 storage::FileSystemType type, |
| 275 base::File::Error* error_code) { | 281 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 storage::kFileSystemTypeNativeMedia: | 285 case storage::kFileSystemTypeNativeMedia: |
| 280 case storage::kFileSystemTypeDeviceMedia: | 286 case storage::kFileSystemTypeDeviceMedia: |
| 281 case storage::kFileSystemTypeIphoto: | 287 case storage::kFileSystemTypeIphoto: |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 context->default_file_task_runner(), | 361 context->default_file_task_runner(), |
| 356 url.path(), | 362 url.path(), |
| 357 offset, | 363 offset, |
| 358 storage::FileStreamWriter::OPEN_EXISTING_FILE)); | 364 storage::FileStreamWriter::OPEN_EXISTING_FILE)); |
| 359 } | 365 } |
| 360 | 366 |
| 361 storage::FileSystemQuotaUtil* MediaFileSystemBackend::GetQuotaUtil() { | 367 storage::FileSystemQuotaUtil* MediaFileSystemBackend::GetQuotaUtil() { |
| 362 // No quota support. | 368 // No quota support. |
| 363 return NULL; | 369 return NULL; |
| 364 } | 370 } |
| OLD | NEW |