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

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

Issue 2799333002: Clear the received slices in DownloadItemImpl when etag changed. (Closed)
Patch Set: Address the uma issue. Created 3 years, 8 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
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_file_factory.h" 5 #include "content/browser/download/download_file_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/download/download_file_impl.h" 9 #include "content/browser/download/download_file_impl.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 DownloadFileFactory::~DownloadFileFactory() {} 13 DownloadFileFactory::~DownloadFileFactory() {}
14 14
15 DownloadFile* DownloadFileFactory::CreateFile( 15 DownloadFile* DownloadFileFactory::CreateFile(
16 std::unique_ptr<DownloadSaveInfo> save_info, 16 std::unique_ptr<DownloadSaveInfo> save_info,
17 const base::FilePath& default_downloads_directory, 17 const base::FilePath& default_downloads_directory,
18 std::unique_ptr<ByteStreamReader> byte_stream, 18 std::unique_ptr<ByteStreamReader> byte_stream,
19 const std::vector<DownloadItem::ReceivedSlice>& received_slices,
20 const net::NetLogWithSource& net_log, 19 const net::NetLogWithSource& net_log,
21 base::WeakPtr<DownloadDestinationObserver> observer) { 20 base::WeakPtr<DownloadDestinationObserver> observer) {
22 return new DownloadFileImpl(std::move(save_info), default_downloads_directory, 21 return new DownloadFileImpl(std::move(save_info), default_downloads_directory,
23 std::move(byte_stream), received_slices, net_log, 22 std::move(byte_stream), net_log, observer);
24 observer);
25 } 23 }
26 24
27 } // namespace content 25 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_file_factory.h ('k') | content/browser/download/download_file_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698