Chromium Code Reviews| Index: chrome/browser/media_gallery/win/mtp_device_object_entry.h |
| diff --git a/chrome/browser/media_gallery/win/mtp_device_object_entry.h b/chrome/browser/media_gallery/win/mtp_device_object_entry.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..70604177acc27ec44f0f5b9fcfd53da5eca077db |
| --- /dev/null |
| +++ b/chrome/browser/media_gallery/win/mtp_device_object_entry.h |
| @@ -0,0 +1,49 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| +// |
| +// This struct contains information about the media transfer protocol device |
| +// (MTP) object entry. To support media file system operations, this |
| +// struct object is constructed, operated and destructed on the blocking pool |
| +// 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.
|
| + |
| +#ifndef CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_ |
| +#define CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_ |
| + |
| +#include <vector> |
| + |
| +#include "base/string16.h" |
| +#include "base/time.h" |
| + |
| +namespace chrome { |
| + |
| +// See comment at top of file for the complete description. |
| +struct MTPDeviceObjectEntry { |
| + MTPDeviceObjectEntry(); // Necessary for STL. |
| + MTPDeviceObjectEntry(const string16& object_id, |
| + const string16& object_name, |
| + bool is_directory, |
| + int64 size, |
| + const base::Time& last_modified_time); |
| + |
| + // The object identifier, e.g. "o299". |
| + string16 object_id; |
| + |
| + // Friendly name of the object, e.g. "IMG_9911.jpeg". |
| + string16 name; |
| + |
| + // True if the current object is a directory/folder/album content type. |
| + bool is_directory; |
| + |
| + // The object file size in bytes, e.g. "882992". |
| + int64 size; |
| + |
| + // Last modified time of the object. |
| + base::Time last_modified_time; |
| +}; |
| + |
| +typedef std::vector<MTPDeviceObjectEntry> MTPDeviceObjectEntries; |
| + |
| +} // namespace chrome |
| + |
| +#endif // CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_ |