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 #ifndef CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_ | |
| 6 #define CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "base/string16.h" | |
|
Ryan Sleevi
2013/01/09 20:22:25
IWYU: You should add
#include "base/basictypes.h"
kmadhusu
2013/01/10 04:59:19
Done.
| |
| 11 #include "base/time.h" | |
| 12 | |
| 13 namespace chrome { | |
| 14 | |
| 15 // MTPDeviceObjectEntry contains information about the media transfer protocol | |
| 16 // device (MTP) object entry. | |
| 17 struct MTPDeviceObjectEntry { | |
| 18 MTPDeviceObjectEntry(); // Necessary for STL. | |
| 19 MTPDeviceObjectEntry(const string16& object_id, | |
| 20 const string16& object_name, | |
| 21 bool is_directory, | |
| 22 int64 size, | |
| 23 const base::Time& last_modified_time); | |
| 24 | |
| 25 // The object identifier, e.g. "o299". | |
| 26 string16 object_id; | |
| 27 | |
| 28 // Friendly name of the object, e.g. "IMG_9911.jpeg". | |
| 29 string16 name; | |
| 30 | |
| 31 // True if the current object is a directory/folder/album content type. | |
| 32 bool is_directory; | |
| 33 | |
| 34 // The object file size in bytes, e.g. "882992". | |
| 35 int64 size; | |
| 36 | |
| 37 // Last modified time of the object. | |
| 38 base::Time last_modified_time; | |
| 39 }; | |
| 40 | |
| 41 typedef std::vector<MTPDeviceObjectEntry> MTPDeviceObjectEntries; | |
| 42 | |
| 43 } // namespace chrome | |
| 44 | |
| 45 #endif // CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_ | |
| OLD | NEW |