| 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/chromeos/gdata/gdata_upload_file_info.h" | 5 #include "chrome/browser/chromeos/gdata/drive_upload_file_info.h" |
| 6 | 6 |
| 7 #include "base/string_number_conversions.h" | 7 #include "base/string_number_conversions.h" |
| 8 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" | 8 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" |
| 9 | 9 |
| 10 namespace gdata { | 10 namespace gdata { |
| 11 | 11 |
| 12 UploadFileInfo::UploadFileInfo() | 12 UploadFileInfo::UploadFileInfo() |
| 13 : upload_id(-1), | 13 : upload_id(-1), |
| 14 file_size(0), | 14 file_size(0), |
| 15 content_length(0), | 15 content_length(0), |
| (...skipping 20 matching lines...) Expand all Loading... |
| 36 DCHECK(file_size > end_range); | 36 DCHECK(file_size > end_range); |
| 37 // Note that uploaded_bytes = end_range + 1; | 37 // Note that uploaded_bytes = end_range + 1; |
| 38 return file_size - end_range - 1; | 38 return file_size - end_range - 1; |
| 39 } | 39 } |
| 40 | 40 |
| 41 std::string UploadFileInfo::DebugString() const { | 41 std::string UploadFileInfo::DebugString() const { |
| 42 return "title=[" + title + | 42 return "title=[" + title + |
| 43 "], file_path=[" + file_path.value() + | 43 "], file_path=[" + file_path.value() + |
| 44 "], content_type=[" + content_type + | 44 "], content_type=[" + content_type + |
| 45 "], file_size=[" + base::UintToString(file_size) + | 45 "], file_size=[" + base::UintToString(file_size) + |
| 46 "], gdata_path=[" + gdata_path.value() + | 46 "], drive_path=[" + drive_path.value() + |
| 47 "]"; | 47 "]"; |
| 48 } | 48 } |
| 49 | 49 |
| 50 } // namespace gdata | 50 } // namespace gdata |
| OLD | NEW |