Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 // | |
| 5 // This struct contains information about the media transfer protocol device | |
| 6 // (MTP) object entry. To support media file system operations, this | |
| 7 // struct object is constructed, operated and destructed on the blocking pool | |
| 8 // thread. | |
|
Peter Kasting
2012/12/21 18:13:30
Nit: I'd leave out the last sentence here; nothing
kmadhusu
2013/01/02 19:48:31
Done.
| |
| 9 | |
| 10 #ifndef CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_ | |
| 11 #define CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_ | |
| 12 | |
| 13 #include <vector> | |
| 14 | |
| 15 #include "base/string16.h" | |
| 16 #include "base/time.h" | |
| 17 | |
| 18 namespace chrome { | |
| 19 | |
| 20 // See comment at top of file for the complete description. | |
| 21 struct MTPDeviceObjectEntry { | |
| 22 MTPDeviceObjectEntry(); // Necessary for STL. | |
| 23 MTPDeviceObjectEntry(const string16& object_id, | |
| 24 const string16& object_name, | |
| 25 bool is_directory, | |
| 26 int64 size, | |
| 27 const base::Time& last_modified_time); | |
| 28 | |
| 29 // The object identifier, e.g. "o299". | |
| 30 string16 object_id; | |
| 31 | |
| 32 // Friendly name of the object, e.g. "IMG_9911.jpeg". | |
| 33 string16 name; | |
| 34 | |
| 35 // True if the current object is a directory/folder/album content type. | |
| 36 bool is_directory; | |
| 37 | |
| 38 // The object file size in bytes, e.g. "882992". | |
| 39 int64 size; | |
| 40 | |
| 41 // Last modified time of the object. | |
| 42 base::Time last_modified_time; | |
| 43 }; | |
| 44 | |
| 45 typedef std::vector<MTPDeviceObjectEntry> MTPDeviceObjectEntries; | |
| 46 | |
| 47 } // namespace chrome | |
| 48 | |
| 49 #endif // CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_ | |
| OLD | NEW |