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

Side by Side Diff: chrome/browser/download/download_item.cc

Issue 6881106: Treat ERR_CONNECTION_CLOSED as end-of-data marker for downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with trunk Created 9 years, 7 months 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
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 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 url_list += " ->\n\t"; 627 url_list += " ->\n\t";
628 const GURL& next_url = *iter; 628 const GURL& next_url = *iter;
629 url_list += next_url.spec(); 629 url_list += next_url.spec();
630 } 630 }
631 } 631 }
632 632
633 if (verbose) { 633 if (verbose) {
634 description += base::StringPrintf( 634 description += base::StringPrintf(
635 " db_handle = %" PRId64 635 " db_handle = %" PRId64
636 " total_bytes = %" PRId64 636 " total_bytes = %" PRId64
637 " received_bytes = %" PRId64
637 " is_paused = %c" 638 " is_paused = %c"
638 " is_extension_install = %c" 639 " is_extension_install = %c"
639 " is_otr = %c" 640 " is_otr = %c"
640 " safety_state = %s" 641 " safety_state = %s"
641 " url_chain = \n\t\"%s\"\n\t" 642 " url_chain = \n\t\"%s\"\n\t"
642 " target_name = \"%" PRFilePath "\"" 643 " target_name = \"%" PRFilePath "\""
643 " full_path = \"%" PRFilePath "\"", 644 " full_path = \"%" PRFilePath "\"",
644 db_handle(), 645 db_handle(),
645 total_bytes(), 646 total_bytes(),
647 received_bytes(),
646 is_paused() ? 'T' : 'F', 648 is_paused() ? 'T' : 'F',
647 is_extension_install() ? 'T' : 'F', 649 is_extension_install() ? 'T' : 'F',
648 is_otr() ? 'T' : 'F', 650 is_otr() ? 'T' : 'F',
649 DebugSafetyStateString(safety_state()), 651 DebugSafetyStateString(safety_state()),
650 url_list.c_str(), 652 url_list.c_str(),
651 state_info_.target_name.value().c_str(), 653 state_info_.target_name.value().c_str(),
652 full_path().value().c_str()); 654 full_path().value().c_str());
653 } else { 655 } else {
654 description += base::StringPrintf(" url = \"%s\"", url_list.c_str()); 656 description += base::StringPrintf(" url = \"%s\"", url_list.c_str());
655 } 657 }
656 658
657 description += " }"; 659 description += " }";
658 660
659 return description; 661 return description;
660 } 662 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_database.cc » ('j') | net/tools/testserver/testserver.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698