OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GALLERY_MTP_DEVICE_DELEGATE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MTP_DEVICE_DELEGATE_IMPL_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERY_MTP_DEVICE_DELEGATE_IMPL_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERY_MTP_DEVICE_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include "webkit/fileapi/media/mtp_device_file_system_config.h" | 8 #include "webkit/fileapi/media/mtp_device_file_system_config.h" |
9 | 9 |
10 #if !defined(SUPPORT_MTP_DEVICE_FILESYSTEM) | 10 #if !defined(SUPPORT_MTP_DEVICE_FILESYSTEM) |
11 #error "Media file system is not supported for this platform." | 11 #error "Media file system is not supported for this platform." |
12 #endif | 12 #endif |
13 | 13 |
| 14 #include "base/callback_forward.h" |
14 #include "base/file_path.h" | 15 #include "base/file_path.h" |
15 #include "webkit/fileapi/media/mtp_device_delegate.h" | 16 #include "webkit/fileapi/media/mtp_device_delegate.h" |
16 | 17 |
| 18 namespace base { |
| 19 class SequencedTaskRunner; |
| 20 } |
| 21 |
17 namespace chrome { | 22 namespace chrome { |
18 | 23 |
19 typedef base::Callback<void(fileapi::MTPDeviceDelegate*)> | 24 typedef base::Callback<void(fileapi::MTPDeviceDelegate*)> |
20 CreateMTPDeviceDelegateCallback; | 25 CreateMTPDeviceDelegateCallback; |
21 | 26 |
22 void CreateMTPDeviceDelegate(const FilePath::StringType& device_location, | 27 void CreateMTPDeviceDelegate(const FilePath::StringType& device_location, |
23 base::SequencedTaskRunner* media_task_runner, | 28 base::SequencedTaskRunner* media_task_runner, |
24 const CreateMTPDeviceDelegateCallback& callback); | 29 const CreateMTPDeviceDelegateCallback& callback); |
25 | 30 |
26 } // namespace chrome | 31 } // namespace chrome |
27 | 32 |
28 #endif // CHROME_BROWSER_MEDIA_GALLERY_MTP_DEVICE_DELEGATE_IMPL_H_ | 33 #endif // CHROME_BROWSER_MEDIA_GALLERY_MTP_DEVICE_DELEGATE_IMPL_H_ |
OLD | NEW |