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 "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "webkit/browser/fileapi/file_system_backend.h" | 10 #include "webkit/browser/fileapi/file_system_backend.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 class SequencedTaskRunner; | 13 class SequencedTaskRunner; |
14 } | 14 } |
15 | 15 |
16 namespace chrome { | |
17 | |
18 class MediaPathFilter; | 16 class MediaPathFilter; |
19 | 17 |
20 class DeviceMediaAsyncFileUtil; | 18 class DeviceMediaAsyncFileUtil; |
21 | 19 |
22 class MediaFileSystemBackend : public fileapi::FileSystemBackend { | 20 class MediaFileSystemBackend : public fileapi::FileSystemBackend { |
23 public: | 21 public: |
24 static const char kMediaTaskRunnerName[]; | 22 static const char kMediaTaskRunnerName[]; |
25 | 23 |
26 MediaFileSystemBackend( | 24 MediaFileSystemBackend( |
27 const base::FilePath& profile_path, | 25 const base::FilePath& profile_path, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 scoped_ptr<fileapi::AsyncFileUtil> native_media_file_util_; | 71 scoped_ptr<fileapi::AsyncFileUtil> native_media_file_util_; |
74 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; | 72 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; |
75 #if defined(OS_WIN) || defined(OS_MACOSX) | 73 #if defined(OS_WIN) || defined(OS_MACOSX) |
76 scoped_ptr<fileapi::AsyncFileUtil> picasa_file_util_; | 74 scoped_ptr<fileapi::AsyncFileUtil> picasa_file_util_; |
77 scoped_ptr<fileapi::AsyncFileUtil> itunes_file_util_; | 75 scoped_ptr<fileapi::AsyncFileUtil> itunes_file_util_; |
78 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 76 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
79 | 77 |
80 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemBackend); | 78 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemBackend); |
81 }; | 79 }; |
82 | 80 |
83 } // namespace chrome | |
84 | |
85 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ | 81 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ |
OLD | NEW |