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

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: Rebase 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 class manages all the information about the media transfer protocol
6 // device (MTP) object entry. To support media file system operations, this
7 // class is created, destroyed and operated on the blocking thread.
8
9 #ifndef CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_
10 #define CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_
11
12 #include <vector>
13
14 #include "base/string16.h"
15 #include "base/time.h"
16
17 namespace chrome {
18
19 class MTPDeviceObjectEntry;
20 typedef std::vector<MTPDeviceObjectEntry> MTPDeviceObjectEntries;
Peter Kasting 2012/12/19 20:17:58 Nit: You can skip the class forward declaration by
kmadhusu 2012/12/20 20:37:29 Done.
21
22 // See comment at top of file for a complete class description.
23 class MTPDeviceObjectEntry {
Peter Kasting 2012/12/19 20:17:58 Since you have no other methods than a constructor
kmadhusu 2012/12/20 20:37:29 Done.
24 public:
25 MTPDeviceObjectEntry(); // Necessary for STL.
26 MTPDeviceObjectEntry(const string16& object_id,
27 const string16& object_name,
28 bool is_directory,
29 int64 size,
30 const base::Time& last_modified_time);
31
32 ~MTPDeviceObjectEntry();
33
34 // Accessor functions to get object details.
35 string16 object_id() const { return object_id_; }
36 string16 file_name() const { return name_; }
37 bool is_directory() const { return is_directory_; }
38 int64 size() const { return size_; }
39 base::Time last_modified_time() const { return last_modified_time_; }
40
41 private:
42 // The object identifier, e.g. "o299".
43 string16 object_id_;
44
45 // Friendly name of the object, e.g. "IMG_9911.jpeg".
46 string16 name_;
47
48 // True if the current object is a directory/folder/album content type.
49 bool is_directory_;
50
51 // The object file size in bytes, e.g. "882992".
52 int64 size_;
53
54 // Last modified time of the object.
55 base::Time last_modified_time_;
56 };
57
58 } // namespace chrome
59
60 #endif // CHROME_BROWSER_MEDIA_GALLERY_WIN_MTP_DEVICE_OBJECT_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698