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

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

Issue 7484061: Use the suggested name from an anchor's 'download' attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2011 Created 9 years, 5 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) 2010 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_types.h" 5 #include "chrome/browser/download/download_types.h"
6 6
7 DownloadBuffer::DownloadBuffer() { 7 DownloadBuffer::DownloadBuffer() {
8 } 8 }
9 9
10 DownloadBuffer::~DownloadBuffer() { 10 DownloadBuffer::~DownloadBuffer() {
11 } 11 }
12 12
13 DownloadSaveInfo::DownloadSaveInfo() { 13 DownloadSaveInfo::DownloadSaveInfo() {
14 } 14 }
15 15
16 DownloadSaveInfo::DownloadSaveInfo(const DownloadSaveInfo& info) 16 DownloadSaveInfo::DownloadSaveInfo(const DownloadSaveInfo& info)
17 : file_path(info.file_path), 17 : file_path(info.file_path),
18 file_stream(info.file_stream) { 18 file_stream(info.file_stream),
19 suggested_name(info.suggested_name) {
19 } 20 }
20 21
21 DownloadSaveInfo::~DownloadSaveInfo() { 22 DownloadSaveInfo::~DownloadSaveInfo() {
22 } 23 }
23 24
24 DownloadSaveInfo& DownloadSaveInfo::operator=(const DownloadSaveInfo& info) { 25 DownloadSaveInfo& DownloadSaveInfo::operator=(const DownloadSaveInfo& info) {
25 file_path = info.file_path; 26 file_path = info.file_path;
26 file_stream = info.file_stream; 27 file_stream = info.file_stream;
28 suggested_name = info.suggested_name;
27 return *this; 29 return *this;
28 } 30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698