blob: 0f5585f996a4c560ec03085defd2a97377c7dcd3 [file] [log] [blame]
// 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.
#ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_JOB_IMPL_H_
#define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_JOB_IMPL_H_
#include "base/macros.h"
#include "content/browser/download/download_item_impl.h"
#include "content/browser/download/download_job.h"
#include "content/common/content_export.h"
namespace content {
class CONTENT_EXPORT DownloadJobImpl : public DownloadJob {
public:
DownloadJobImpl(
DownloadItemImpl* download_item,
std::unique_ptr<DownloadRequestHandleInterface> request_handle,
bool is_parallizable);
~DownloadJobImpl() override;
// DownloadJob implementation.
bool IsParallelizable() const override;
private:
// Whether the download can be parallized.
bool is_parallizable_;
DISALLOW_COPY_AND_ASSIGN(DownloadJobImpl);
};
} // namespace content
#endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_JOB_IMPL_H_