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

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: " 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
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 "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 13 matching lines...) Expand all
24 WebContents* DownloadManagerDelegate:: 24 WebContents* DownloadManagerDelegate::
25 GetAlternativeWebContentsToNotifyForDownload() { 25 GetAlternativeWebContentsToNotifyForDownload() {
26 return NULL; 26 return NULL;
27 } 27 }
28 28
29 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension( 29 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension(
30 const FilePath& path) { 30 const FilePath& path) {
31 return false; 31 return false;
32 } 32 }
33 33
34 bool DownloadManagerDelegate::ShouldCompleteDownload(DownloadItem* item) { 34 bool DownloadManagerDelegate::ShouldCompleteDownload(
35 DownloadItem* item,
36 const base::Closure& complete_callback) {
35 return true; 37 return true;
36 } 38 }
37 39
38 bool DownloadManagerDelegate::ShouldOpenDownload(DownloadItem* item) { 40 bool DownloadManagerDelegate::ShouldOpenDownload(DownloadItem* item) {
39 return true; 41 return true;
40 } 42 }
41 43
42 bool DownloadManagerDelegate::GenerateFileHash() { 44 bool DownloadManagerDelegate::GenerateFileHash() {
43 return false; 45 return false;
44 } 46 }
45 47
46 } // namespace content 48 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698