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

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

Issue 10950015: Shift "commit point" for when a download will no longer accept cancels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to LKGR. Created 8 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/browser/download/download_file_factory.h"
6
7 #include "content/browser/download/download_file_impl.h"
8 #include "content/browser/power_save_blocker.h"
9
10 namespace content {
11
12 DownloadFileFactory::~DownloadFileFactory() {}
13
14 DownloadFile* DownloadFileFactory::CreateFile(
15 DownloadCreateInfo* info,
16 scoped_ptr<content::ByteStreamReader> stream,
17 DownloadManager* download_manager,
18 bool calculate_hash,
19 const net::BoundNetLog& bound_net_log) {
20 return new DownloadFileImpl(
21 info, stream.Pass(), new DownloadRequestHandle(info->request_handle),
22 download_manager, calculate_hash,
23 scoped_ptr<content::PowerSaveBlocker>(
24 new content::PowerSaveBlocker(
25 content::PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension,
26 "Download in progress")).Pass(),
27 bound_net_log);
28 }
29
30 } // 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