blob: 4da7eb429ae6eca4a6b880e8924dbe5f79e7a054 (
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
|
// Copyright 2017 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 "content/browser/download/download_job.h"
#include "content/browser/download/download_item_impl.h"
namespace content {
DownloadJob::DownloadJob(DownloadItemImpl* download_item)
: download_item_(download_item), is_paused_(false) {}
DownloadJob::~DownloadJob() = default;
void DownloadJob::Pause() {
is_paused_ = true;
}
void DownloadJob::Resume(bool resume_request) {
is_paused_ = false;
}
void DownloadJob::StartDownload() const {
download_item_->StartDownload();
}
} // namespace content
|