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_LINUX_MTP_DEVICE_OBJECT_ENUMERATOR_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_DEVICE_OBJECT_ENUMERATOR_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_DEVICE_OBJECT_ENUMERATOR_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_DEVICE_OBJECT_ENUMERATOR_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 #include "chrome/browser/media_transfer_protocol/mtp_file_entry.pb.h" | 12 #include "device/media_transfer_protocol/mtp_file_entry.pb.h" |
13 #include "webkit/fileapi/file_system_file_util.h" | 13 #include "webkit/fileapi/file_system_file_util.h" |
14 | 14 |
15 namespace chrome { | 15 namespace chrome { |
16 | 16 |
17 typedef std::vector<MtpFileEntry> MtpFileEntries; | 17 typedef std::vector<MtpFileEntry> MtpFileEntries; |
18 | 18 |
19 // Used to enumerate top-level files of an media file system. | 19 // Used to enumerate top-level files of an media file system. |
20 class MTPDeviceObjectEnumerator | 20 class MTPDeviceObjectEnumerator |
21 : public fileapi::FileSystemFileUtil::AbstractFileEnumerator { | 21 : public fileapi::FileSystemFileUtil::AbstractFileEnumerator { |
22 public: | 22 public: |
(...skipping 16 matching lines...) Expand all Loading... |
39 | 39 |
40 // Stores the current file information. | 40 // Stores the current file information. |
41 MtpFileEntry current_file_info_; | 41 MtpFileEntry current_file_info_; |
42 | 42 |
43 DISALLOW_COPY_AND_ASSIGN(MTPDeviceObjectEnumerator); | 43 DISALLOW_COPY_AND_ASSIGN(MTPDeviceObjectEnumerator); |
44 }; | 44 }; |
45 | 45 |
46 } // namespace chrome | 46 } // namespace chrome |
47 | 47 |
48 #endif // CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_DEVICE_OBJECT_ENUMERATOR_H_ | 48 #endif // CHROME_BROWSER_MEDIA_GALLERY_LINUX_MTP_DEVICE_OBJECT_ENUMERATOR_H_ |
OLD | NEW |