summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/mock_download_manager_delegate.cc
blob: b597f61bbe4af75ae55557fdef2c4dea990ec4ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/download/mock_download_manager_delegate.h"

MockDownloadManagerDelegate::~MockDownloadManagerDelegate() {
}

bool MockDownloadManagerDelegate::ShouldStartDownload(int32 download_id) {
  return true;
}

void MockDownloadManagerDelegate::ChooseDownloadPath(
    TabContents* tab_contents,
    const FilePath& suggested_path,
    void* data) {
}

TabContents* MockDownloadManagerDelegate::
    GetAlternativeTabContentsToNotifyForDownload() {
  return NULL;
}

bool MockDownloadManagerDelegate::ShouldOpenFileBasedOnExtension(
    const FilePath& path) {
  return false;
}

bool MockDownloadManagerDelegate::GenerateFileHash() {
  return false;
}

void MockDownloadManagerDelegate::GetSaveDir(
    TabContents* tab_contents,
    FilePath* website_save_dir,
    FilePath* download_save_dir) {
}

void MockDownloadManagerDelegate::ChooseSavePath(
    const base::WeakPtr<SavePackage>& save_package,
    const FilePath& suggested_path,
    bool can_save_as_complete) {
}

void MockDownloadManagerDelegate::DownloadProgressUpdated() {
}