| 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 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace storage { | 26 namespace storage { |
| 27 class FileSystemURL; | 27 class FileSystemURL; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace net { | 30 namespace net { |
| 31 class URLRequest; | 31 class URLRequest; |
| 32 } | 32 } |
| 33 | 33 |
| 34 class DeviceMediaAsyncFileUtil; |
| 34 class MediaPathFilter; | 35 class MediaPathFilter; |
| 35 class DeviceMediaAsyncFileUtil; | |
| 36 | 36 |
| 37 class MediaFileSystemBackend : public storage::FileSystemBackend { | 37 class MediaFileSystemBackend : public storage::FileSystemBackend { |
| 38 public: | 38 public: |
| 39 static const char kMediaTaskRunnerName[]; | 39 static const char kMediaTaskRunnerName[]; |
| 40 | 40 |
| 41 MediaFileSystemBackend( | 41 MediaFileSystemBackend( |
| 42 const base::FilePath& profile_path, | 42 const base::FilePath& profile_path, |
| 43 base::SequencedTaskRunner* media_task_runner); | 43 base::SequencedTaskRunner* media_task_runner); |
| 44 ~MediaFileSystemBackend() override; | 44 ~MediaFileSystemBackend() override; |
| 45 | 45 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Store the profile path. We need this to create temporary snapshot files. | 103 // Store the profile path. We need this to create temporary snapshot files. |
| 104 const base::FilePath profile_path_; | 104 const base::FilePath profile_path_; |
| 105 | 105 |
| 106 scoped_refptr<base::SequencedTaskRunner> media_task_runner_; | 106 scoped_refptr<base::SequencedTaskRunner> media_task_runner_; |
| 107 | 107 |
| 108 std::unique_ptr<MediaPathFilter> media_path_filter_; | 108 std::unique_ptr<MediaPathFilter> media_path_filter_; |
| 109 std::unique_ptr<storage::CopyOrMoveFileValidatorFactory> | 109 std::unique_ptr<storage::CopyOrMoveFileValidatorFactory> |
| 110 media_copy_or_move_file_validator_factory_; | 110 media_copy_or_move_file_validator_factory_; |
| 111 | 111 |
| 112 std::unique_ptr<storage::AsyncFileUtil> native_media_file_util_; | 112 std::unique_ptr<storage::AsyncFileUtil> native_media_file_util_; |
| 113 |
| 114 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS) |
| 113 std::unique_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; | 115 std::unique_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; |
| 116 #endif |
| 117 |
| 114 #if defined(OS_WIN) || defined(OS_MACOSX) | 118 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 115 std::unique_ptr<storage::AsyncFileUtil> picasa_file_util_; | 119 std::unique_ptr<storage::AsyncFileUtil> picasa_file_util_; |
| 116 std::unique_ptr<storage::AsyncFileUtil> itunes_file_util_; | 120 std::unique_ptr<storage::AsyncFileUtil> itunes_file_util_; |
| 117 | 121 |
| 118 // Used for usage UMA tracking. | 122 // Used for usage UMA tracking. |
| 119 bool picasa_file_util_used_; | 123 bool picasa_file_util_used_; |
| 120 bool itunes_file_util_used_; | 124 bool itunes_file_util_used_; |
| 121 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 125 #endif |
| 122 | 126 |
| 123 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemBackend); | 127 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemBackend); |
| 124 }; | 128 }; |
| 125 | 129 |
| 126 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ | 130 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ |
| OLD | NEW |