summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-29 02:17:05 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-29 02:17:05 +0000
commit5402c2ae75212090d6bb55db622cde34a694dade (patch)
tree515fa6e124d8d8601d0c98a2fe07a895116c04a2 /chromeos/dbus
parent6798c3375d6ec0cefa3f44dcf27a894135153947 (diff)
downloadchromium_src-5402c2ae75212090d6bb55db622cde34a694dade.zip
chromium_src-5402c2ae75212090d6bb55db622cde34a694dade.tar.gz
chromium_src-5402c2ae75212090d6bb55db622cde34a694dade.tar.bz2
Add default constructor for MediaTransferProtocolClient FileEntry and StorageInfo classes.
BUG=144527 TEST=none Review URL: https://chromiumcodereview.appspot.com/10876094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153825 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus')
-rw-r--r--chromeos/dbus/media_transfer_protocol_daemon_client.cc19
-rw-r--r--chromeos/dbus/media_transfer_protocol_daemon_client.h2
2 files changed, 21 insertions, 0 deletions
diff --git a/chromeos/dbus/media_transfer_protocol_daemon_client.cc b/chromeos/dbus/media_transfer_protocol_daemon_client.cc
index 70b081c..12daa09 100644
--- a/chromeos/dbus/media_transfer_protocol_daemon_client.cc
+++ b/chromeos/dbus/media_transfer_protocol_daemon_client.cc
@@ -422,6 +422,18 @@ class MediaTransferProtocolDaemonClientStubImpl
////////////////////////////////////////////////////////////////////////////////
// StorageInfo
+StorageInfo::StorageInfo()
+ : vendor_id_(0),
+ product_id_(0),
+ device_flags_(0),
+ storage_type_(0),
+ filesystem_type_(0),
+ access_capability_(0),
+ max_capacity_(0),
+ free_space_in_bytes_(0),
+ free_space_in_objects_(0) {
+}
+
StorageInfo::StorageInfo(const std::string& storage_name,
dbus::Response* response)
: vendor_id_(0),
@@ -484,6 +496,13 @@ void StorageInfo::InitializeFromResponse(dbus::Response* response) {
////////////////////////////////////////////////////////////////////////////////
// FileEntry
+FileEntry::FileEntry()
+ : item_id_(0),
+ parent_id_(0),
+ file_size_(0),
+ file_type_(FILE_TYPE_UNKNOWN) {
+}
+
FileEntry::FileEntry(dbus::Response* response)
: item_id_(0),
parent_id_(0),
diff --git a/chromeos/dbus/media_transfer_protocol_daemon_client.h b/chromeos/dbus/media_transfer_protocol_daemon_client.h
index f544110..399173a 100644
--- a/chromeos/dbus/media_transfer_protocol_daemon_client.h
+++ b/chromeos/dbus/media_transfer_protocol_daemon_client.h
@@ -54,6 +54,7 @@ enum FileType {
// A class to represent information about a storage sent from mtpd.
class CHROMEOS_EXPORT StorageInfo {
public:
+ StorageInfo();
StorageInfo(const std::string& storage_name, dbus::Response* response);
~StorageInfo();
@@ -126,6 +127,7 @@ class CHROMEOS_EXPORT StorageInfo {
// A class to represent information about a file entry sent from mtpd.
class CHROMEOS_EXPORT FileEntry {
public:
+ FileEntry();
explicit FileEntry(dbus::Response* response);
~FileEntry();