| 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 "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "webkit/fileapi/media/mtp_device_file_system_config.h" | 9 #include "webkit/fileapi/media/mtp_device_file_system_config.h" |
| 10 | 10 |
| 11 #if !defined(SUPPORT_MTP_DEVICE_FILESYSTEM) | 11 #if !defined(SUPPORT_MTP_DEVICE_FILESYSTEM) |
| 12 #error "Media file system is not supported for this platform." | 12 #error "Media file system is not supported for this platform." |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 #if defined(OS_LINUX) // Implies OS_CHROMEOS | 15 #if defined(OS_LINUX) // Implies OS_CHROMEOS |
| 16 #include "chrome/browser/media_gallery/mtp_device_delegate_impl_linux.h" | 16 #include "chrome/browser/media_gallery/mtp_device_delegate_impl_linux.h" |
| 17 #elif defined(OS_WIN) |
| 18 #include "chrome/browser/media_gallery/win/mtp_device_delegate_impl_win.h" |
| 17 #endif | 19 #endif |
| 18 | 20 |
| 19 namespace chrome { | 21 namespace chrome { |
| 20 | 22 |
| 21 // TODO(kmadhusu): Implement MTP device delegates on other platforms. | 23 // TODO(kmadhusu): Implement MTP device delegates on other platforms. |
| 22 #if defined(OS_LINUX) // Implies OS_CHROMEOS | 24 #if defined(OS_LINUX) // Implies OS_CHROMEOS |
| 23 typedef class MTPDeviceDelegateImplLinux MTPDeviceDelegateImpl; | 25 typedef class MTPDeviceDelegateImplLinux MTPDeviceDelegateImpl; |
| 26 #elif defined(OS_WIN) |
| 27 typedef class MTPDeviceDelegateImplWin MTPDeviceDelegateImpl; |
| 24 #endif | 28 #endif |
| 25 | 29 |
| 26 } // namespace chrome | 30 } // namespace chrome |
| 27 | 31 |
| 28 #endif // CHROME_BROWSER_MEDIA_GALLERY_MTP_DEVICE_DELEGATE_IMPL_H_ | 32 #endif // CHROME_BROWSER_MEDIA_GALLERY_MTP_DEVICE_DELEGATE_IMPL_H_ |
| OLD | NEW |