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

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

Issue 11640007: Make the UI an observer of downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android clang build Created 7 years, 9 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) 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 #include "content/public/browser/download_item.h" 8 #include "content/public/browser/download_item.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 DownloadId DownloadManagerDelegate::GetNextId() { 12 DownloadId DownloadManagerDelegate::GetNextId() {
13 return DownloadId::Invalid(); 13 return DownloadId::Invalid();
14 } 14 }
15 15
16 bool DownloadManagerDelegate::DetermineDownloadTarget( 16 bool DownloadManagerDelegate::DetermineDownloadTarget(
17 DownloadItem* item, 17 DownloadItem* item,
18 const DownloadTargetCallback& callback) { 18 const DownloadTargetCallback& callback) {
19 return false; 19 return false;
20 } 20 }
21 21
22 WebContents* DownloadManagerDelegate::
23 GetAlternativeWebContentsToNotifyForDownload() {
24 return NULL;
25 }
26
27 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension( 22 bool DownloadManagerDelegate::ShouldOpenFileBasedOnExtension(
28 const base::FilePath& path) { 23 const base::FilePath& path) {
29 return false; 24 return false;
30 } 25 }
31 26
32 bool DownloadManagerDelegate::ShouldCompleteDownload( 27 bool DownloadManagerDelegate::ShouldCompleteDownload(
33 DownloadItem* item, 28 DownloadItem* item,
34 const base::Closure& callback) { 29 const base::Closure& callback) {
35 return true; 30 return true;
36 } 31 }
37 32
38 bool DownloadManagerDelegate::ShouldOpenDownload( 33 bool DownloadManagerDelegate::ShouldOpenDownload(
39 DownloadItem* item, const DownloadOpenDelayedCallback& callback) { 34 DownloadItem* item, const DownloadOpenDelayedCallback& callback) {
40 return true; 35 return true;
41 } 36 }
42 37
43 bool DownloadManagerDelegate::GenerateFileHash() { 38 bool DownloadManagerDelegate::GenerateFileHash() {
44 return false; 39 return false;
45 } 40 }
46 41
47 DownloadManagerDelegate::~DownloadManagerDelegate() {} 42 DownloadManagerDelegate::~DownloadManagerDelegate() {}
48 43
49 } // namespace content 44 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/download_manager_delegate.h ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698