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

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: pick 91c11da Forced logging on again. 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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/safe_browsing_database.cc » ('j') | net/http/http_stream_parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698