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

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: Removed DCHECK, added lock in PortableDeviceWatcherWin and fixed tests. Created 8 years 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 // 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698