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

Side by Side Diff: content/public/browser/download_manager_delegate.cc

Issue 10263019: DownloadManagerDelegate::ShouldCompleteDownload(callback) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merge Created 8 years, 7 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
« no previous file with comments | « content/public/browser/download_manager_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/public/browser/download_manager_delegate.h" 5 #include "content/public/browser/download_manager_delegate.h"
6 6
7 #include "content/public/browser/download_id.h" 7 #include "content/public/browser/download_id.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 16 matching lines...) Expand all
27 WebContents* DownloadManagerDelegate:: 27 WebContents* DownloadManagerDelegate::
28 GetAlternativeWebContentsToNotifyForDownload() { 28 GetAlternativeWebContentsToNotifyForDownload() {
29 return NULL; 29 return NULL;
30 } 30 }
31 31
32 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension( 32 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension(
33 const FilePath& path) { 33 const FilePath& path) {
34 return false; 34 return false;
35 } 35 }
36 36
37 bool DownloadManagerDelegate::ShouldCompleteDownload(DownloadItem* item) { 37 bool DownloadManagerDelegate::ShouldCompleteDownload(
38 DownloadItem* item,
39 const base::Closure& complete_callback) {
38 return true; 40 return true;
39 } 41 }
40 42
41 bool DownloadManagerDelegate::ShouldOpenDownload(DownloadItem* item) { 43 bool DownloadManagerDelegate::ShouldOpenDownload(DownloadItem* item) {
42 return true; 44 return true;
43 } 45 }
44 46
45 bool DownloadManagerDelegate::GenerateFileHash() { 47 bool DownloadManagerDelegate::GenerateFileHash() {
46 return false; 48 return false;
47 } 49 }
48 50
49 } // namespace content 51 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/download_manager_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698