| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/download/download_item.h" | 5 #include "chrome/browser/download/download_item.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
| 10 #include "base/i18n/case_conversion.h" | 10 #include "base/i18n/case_conversion.h" |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 url_list += " -> "; | 622 url_list += " -> "; |
| 623 const GURL& next_url = *iter; | 623 const GURL& next_url = *iter; |
| 624 url_list += next_url.spec(); | 624 url_list += next_url.spec(); |
| 625 } | 625 } |
| 626 } | 626 } |
| 627 | 627 |
| 628 if (verbose) { | 628 if (verbose) { |
| 629 description += base::StringPrintf( | 629 description += base::StringPrintf( |
| 630 " db_handle = %" PRId64 | 630 " db_handle = %" PRId64 |
| 631 " total_bytes = %" PRId64 | 631 " total_bytes = %" PRId64 |
| 632 " received_bytes = %" PRId64 |
| 632 " is_paused = " "%c" | 633 " is_paused = " "%c" |
| 633 " is_extension_install = " "%c" | 634 " is_extension_install = " "%c" |
| 634 " is_otr = " "%c" | 635 " is_otr = " "%c" |
| 635 " safety_state = " "%s" | 636 " safety_state = " "%s" |
| 636 " url_chain = " "\"%s\"" | 637 " url_chain = " "\"%s\"" |
| 637 " target_name_ = \"%" PRFilePath "\"" | 638 " target_name_ = \"%" PRFilePath "\"" |
| 638 " full_path = \"%" PRFilePath "\"", | 639 " full_path = \"%" PRFilePath "\"", |
| 639 db_handle(), | 640 db_handle(), |
| 640 total_bytes(), | 641 total_bytes(), |
| 642 received_bytes(), |
| 641 is_paused() ? 'T' : 'F', | 643 is_paused() ? 'T' : 'F', |
| 642 is_extension_install() ? 'T' : 'F', | 644 is_extension_install() ? 'T' : 'F', |
| 643 is_otr() ? 'T' : 'F', | 645 is_otr() ? 'T' : 'F', |
| 644 DebugSafetyStateString(safety_state()), | 646 DebugSafetyStateString(safety_state()), |
| 645 url_list.c_str(), | 647 url_list.c_str(), |
| 646 target_name_.value().c_str(), | 648 target_name_.value().c_str(), |
| 647 full_path().value().c_str()); | 649 full_path().value().c_str()); |
| 648 } else { | 650 } else { |
| 649 description += base::StringPrintf(" url = \"%s\"", url_list.c_str()); | 651 description += base::StringPrintf(" url = \"%s\"", url_list.c_str()); |
| 650 } | 652 } |
| 651 return description; | 653 return description; |
| 652 } | 654 } |
| OLD | NEW |