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

Side by Side Diff: content/browser/download/download_job_impl.h

Issue 2689373003: Introduce ParallelDownloadJob. (Closed)
Patch Set: nits. Created 3 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_JOB_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_JOB_IMPL_H_
7
8 #include "base/macros.h"
9 #include "content/browser/download/download_item_impl.h"
10 #include "content/browser/download/download_job.h"
11 #include "content/browser/download/download_request_handle.h"
12 #include "content/common/content_export.h"
13
14 namespace content {
15
16 class CONTENT_EXPORT DownloadJobImpl : public DownloadJob {
17 public:
18 DownloadJobImpl(
19 DownloadItemImpl* download_item,
20 std::unique_ptr<DownloadRequestHandleInterface> request_handle);
21 ~DownloadJobImpl() override;
22
23 // DownloadJob implementation.
24 void Start() override;
25 void Cancel(bool user_cancel) override;
26 void Pause() override;
27 void Resume(bool resume_request) override;
28 WebContents* GetWebContents() const override;
29
30 private:
31 // Used to perform operations on network request.
32 // Can be null on interrupted download.
33 std::unique_ptr<DownloadRequestHandleInterface> request_handle_;
34
35 DISALLOW_COPY_AND_ASSIGN(DownloadJobImpl);
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_JOB_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_job_factory.cc ('k') | content/browser/download/download_job_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698