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

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

Issue 7618048: Move the core download files to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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_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"
11 11
12 DownloadCreateInfo::DownloadCreateInfo(const FilePath& path, 12 DownloadCreateInfo::DownloadCreateInfo(const FilePath& path,
13 const GURL& url, 13 const GURL& url,
14 const base::Time& start_time, 14 const base::Time& start_time,
15 int64 received_bytes, 15 int64 received_bytes,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 path.value().c_str(), 61 path.value().c_str(),
62 received_bytes, 62 received_bytes,
63 total_bytes, 63 total_bytes,
64 request_handle.DebugString().c_str(), 64 request_handle.DebugString().c_str(),
65 prompt_user_for_save_location ? 'T' : 'F'); 65 prompt_user_for_save_location ? 'T' : 'F');
66 } 66 }
67 67
68 const GURL& DownloadCreateInfo::url() const { 68 const GURL& DownloadCreateInfo::url() const {
69 return url_chain.empty() ? GURL::EmptyGURL() : url_chain.back(); 69 return url_chain.empty() ? GURL::EmptyGURL() : url_chain.back();
70 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698