| 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 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "webkit/common/fileapi/file_system_util.h" | 32 #include "webkit/common/fileapi/file_system_util.h" |
| 33 | 33 |
| 34 #if defined(OS_WIN) || defined(OS_MACOSX) | 34 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 35 #include "chrome/browser/media_galleries/fileapi/itunes_file_util.h" | 35 #include "chrome/browser/media_galleries/fileapi/itunes_file_util.h" |
| 36 #include "chrome/browser/media_galleries/fileapi/picasa_file_util.h" | 36 #include "chrome/browser/media_galleries/fileapi/picasa_file_util.h" |
| 37 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 37 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 38 | 38 |
| 39 using fileapi::FileSystemContext; | 39 using fileapi::FileSystemContext; |
| 40 using fileapi::FileSystemURL; | 40 using fileapi::FileSystemURL; |
| 41 | 41 |
| 42 namespace chrome { | |
| 43 | |
| 44 const char MediaFileSystemBackend::kMediaTaskRunnerName[] = | 42 const char MediaFileSystemBackend::kMediaTaskRunnerName[] = |
| 45 "media-task-runner"; | 43 "media-task-runner"; |
| 46 | 44 |
| 47 MediaFileSystemBackend::MediaFileSystemBackend( | 45 MediaFileSystemBackend::MediaFileSystemBackend( |
| 48 const base::FilePath& profile_path, | 46 const base::FilePath& profile_path, |
| 49 base::SequencedTaskRunner* media_task_runner) | 47 base::SequencedTaskRunner* media_task_runner) |
| 50 : profile_path_(profile_path), | 48 : profile_path_(profile_path), |
| 51 media_task_runner_(media_task_runner), | 49 media_task_runner_(media_task_runner), |
| 52 media_path_filter_(new MediaPathFilter), | 50 media_path_filter_(new MediaPathFilter), |
| 53 media_copy_or_move_file_validator_factory_(new MediaFileValidatorFactory), | 51 media_copy_or_move_file_validator_factory_(new MediaFileValidatorFactory), |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 new fileapi::LocalFileStreamWriter( | 185 new fileapi::LocalFileStreamWriter( |
| 188 context->default_file_task_runner(), | 186 context->default_file_task_runner(), |
| 189 url.path(), offset)); | 187 url.path(), offset)); |
| 190 } | 188 } |
| 191 | 189 |
| 192 fileapi::FileSystemQuotaUtil* | 190 fileapi::FileSystemQuotaUtil* |
| 193 MediaFileSystemBackend::GetQuotaUtil() { | 191 MediaFileSystemBackend::GetQuotaUtil() { |
| 194 // No quota support. | 192 // No quota support. |
| 195 return NULL; | 193 return NULL; |
| 196 } | 194 } |
| 197 | |
| 198 } // namespace chrome | |
| OLD | NEW |