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

Side by Side Diff: content/browser/download/download_create_info.cc

Issue 11571025: Initial CL for Downloads resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated Pawel's comment. Created 7 years, 11 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) 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 "content/browser/download/download_create_info.h" 5 #include "content/browser/download/download_create_info.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
(...skipping 23 matching lines...) Expand all
34 save_info(new DownloadSaveInfo()) { 34 save_info(new DownloadSaveInfo()) {
35 } 35 }
36 36
37 DownloadCreateInfo::~DownloadCreateInfo() { 37 DownloadCreateInfo::~DownloadCreateInfo() {
38 } 38 }
39 39
40 std::string DownloadCreateInfo::DebugString() const { 40 std::string DownloadCreateInfo::DebugString() const {
41 return base::StringPrintf("{" 41 return base::StringPrintf("{"
42 " download_id = %s" 42 " download_id = %s"
43 " url = \"%s\"" 43 " url = \"%s\""
44 " request_handle = %s"
44 " total_bytes = %" PRId64 45 " total_bytes = %" PRId64
45 " }", 46 " }",
46 download_id.DebugString().c_str(), 47 download_id.DebugString().c_str(),
47 url().spec().c_str(), 48 url().spec().c_str(),
49 request_handle.DebugString().c_str(),
48 total_bytes); 50 total_bytes);
49 } 51 }
50 52
51 const GURL& DownloadCreateInfo::url() const { 53 const GURL& DownloadCreateInfo::url() const {
52 return url_chain.empty() ? GURL::EmptyGURL() : url_chain.back(); 54 return url_chain.empty() ? GURL::EmptyGURL() : url_chain.back();
53 } 55 }
54 56
55 } // namespace content 57 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_browsertest.cc ('k') | content/browser/download/download_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698