| Index: content/browser/download/download_worker.h
|
| diff --git a/content/browser/download/download_worker.h b/content/browser/download/download_worker.h
|
| index 62573e42496d6de9c88490fa1ac10a4d445900ab..45b85b53db88ad9360baa06dad52b6da67fcbd66 100644
|
| --- a/content/browser/download/download_worker.h
|
| +++ b/content/browser/download/download_worker.h
|
| @@ -12,6 +12,7 @@
|
| #include "content/browser/byte_stream.h"
|
| #include "content/browser/download/download_request_handle.h"
|
| #include "content/browser/download/url_downloader.h"
|
| +#include "content/common/content_export.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/download_url_parameters.h"
|
|
|
| @@ -21,7 +22,7 @@ namespace content {
|
| // file after handling response of the original non-range request.
|
| // TODO(xingliu): we should consider to reuse this class for single connection
|
| // download.
|
| -class DownloadWorker : public UrlDownloader::Delegate {
|
| +class CONTENT_EXPORT DownloadWorker : public UrlDownloader::Delegate {
|
| public:
|
| class Delegate {
|
| public:
|
| @@ -72,6 +73,10 @@ class DownloadWorker : public UrlDownloader::Delegate {
|
| // The length of the request. May be 0 to fetch to the end of the file.
|
| int64_t length_;
|
|
|
| + // States of the worker.
|
| + bool is_paused_;
|
| + bool is_canceled_;
|
| +
|
| // Used to control the network request. Live on UI thread.
|
| std::unique_ptr<DownloadRequestHandleInterface> request_handle_;
|
|
|
|
|