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. | |
| 7 | |
| 8 #ifndef CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_ | |
| 9 #define CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_ | |
| 10 | |
| 11 #include <vector> | |
| 12 | |
| 13 #include "base/string16.h" | |
| 14 #include "base/time.h" | |
| 15 | |
| 16 namespace chrome { | |
| 17 | |
| 18 // See comment at top of file for the complete description. | |
|
Ryan Sleevi
2013/01/09 00:20:36
While I realize the style guide permits this, you
kmadhusu
2013/01/09 18:11:14
Fixed.
| |
| 19 struct MTPDeviceObjectEntry { | |
| 20 MTPDeviceObjectEntry(); // Necessary for STL. | |
| 21 MTPDeviceObjectEntry(const string16& object_id, | |
| 22 const string16& object_name, | |
| 23 bool is_directory, | |
| 24 int64 size, | |
| 25 const base::Time& last_modified_time); | |
| 26 | |
| 27 // The object identifier, e.g. "o299". | |
| 28 string16 object_id; | |
| 29 | |
| 30 // Friendly name of the object, e.g. "IMG_9911.jpeg". | |
| 31 string16 name; | |
| 32 | |
| 33 // True if the current object is a directory/folder/album content type. | |
| 34 bool is_directory; | |
| 35 | |
| 36 // The object file size in bytes, e.g. "882992". | |
| 37 int64 size; | |
| 38 | |
| 39 // Last modified time of the object. | |
| 40 base::Time last_modified_time; | |
| 41 }; | |
| 42 | |
| 43 typedef std::vector<MTPDeviceObjectEntry> MTPDeviceObjectEntries; | |
| 44 | |
| 45 } // namespace chrome | |
| 46 | |
| 47 #endif // CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_ | |
| OLD | NEW |