| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/storage_monitor/storage_info.h" | 5 #include "chrome/browser/storage_monitor/storage_info.h" |
| 6 | 6 |
| 7 namespace chrome { | 7 namespace chrome { |
| 8 | 8 |
| 9 StorageInfo::StorageInfo() : total_size_in_bytes(0) { | 9 StorageInfo::StorageInfo() : total_size_in_bytes(0) { |
| 10 } | 10 } |
| 11 | 11 |
| 12 StorageInfo::StorageInfo(const std::string& id, const string16& device_name, | 12 StorageInfo::StorageInfo(const std::string& id, |
| 13 const string16& device_name, |
| 13 const base::FilePath::StringType& device_location) | 14 const base::FilePath::StringType& device_location) |
| 14 : device_id(id), | 15 : device_id(id), |
| 15 name(device_name), | 16 name(device_name), |
| 16 location(device_location), | 17 location(device_location), |
| 17 total_size_in_bytes(0) { | 18 total_size_in_bytes(0) { |
| 18 } | 19 } |
| 19 | 20 |
| 21 StorageInfo::StorageInfo(const std::string& id, |
| 22 const string16& device_name, |
| 23 const base::FilePath::StringType& device_location, |
| 24 const string16& label, |
| 25 const string16& vendor, |
| 26 const string16& model, |
| 27 uint64 size_in_bytes) |
| 28 : device_id(id), |
| 29 name(device_name), |
| 30 location(device_location), |
| 31 storage_label(label), |
| 32 vendor_name(vendor), |
| 33 model_name(model), |
| 34 total_size_in_bytes(size_in_bytes) { |
| 35 } |
| 36 |
| 20 StorageInfo::~StorageInfo() { | 37 StorageInfo::~StorageInfo() { |
| 21 } | 38 } |
| 22 | 39 |
| 23 } // namespace chrome | 40 } // namespace chrome |
| OLD | NEW |