Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1095)

Side by Side Diff: chrome/browser/media_gallery/win/mtp_device_object_entry.h

Issue 11297002: [Media Gallery] Added code to support mtp device media file system on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comment and disabled MediaFileSystemRegistryTest.GalleryNameMTP Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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/basictypes.h"
11 #include "base/string16.h"
12 #include "base/time.h"
13
14 namespace chrome {
15
16 // MTPDeviceObjectEntry contains information about the media transfer protocol
Lei Zhang 2013/01/14 20:49:02 This comment is not helpful. It just says foo cont
kmadhusu 2013/01/15 19:08:17 Rephrased the comment to include details about the
17 // device (MTP) object entry.
18 struct MTPDeviceObjectEntry {
19 MTPDeviceObjectEntry(); // Necessary for STL.
20 MTPDeviceObjectEntry(const string16& object_id,
21 const string16& object_name,
22 bool is_directory,
23 int64 size,
24 const base::Time& last_modified_time);
25
26 // The object identifier, e.g. "o299".
Lei Zhang 2013/01/14 20:49:02 Where does this ID come from?
kmadhusu 2013/01/15 19:08:17 ID is obtained from IEnumPortableDeviceObjectIDs i
27 string16 object_id;
28
29 // Friendly name of the object, e.g. "IMG_9911.jpeg".
Lei Zhang 2013/01/14 20:49:02 Is this always just the file name or the full path
kmadhusu 2013/01/15 19:08:17 This field always store the file name.
30 string16 name;
31
32 // True if the current object is a directory/folder/album content type.
33 bool is_directory;
34
35 // The object file size in bytes, e.g. "882992".
36 int64 size;
37
38 // Last modified time of the object.
39 base::Time last_modified_time;
40 };
41
42 typedef std::vector<MTPDeviceObjectEntry> MTPDeviceObjectEntries;
43
44 } // namespace chrome
45
46 #endif // CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698