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

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

Issue 2689373003: Introduce ParallelDownloadJob. (Closed)
Patch Set: Make windows compiler happy. Created 3 years, 10 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_URL_JOB_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_URL_JOB_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 DownloadUrlJob : public DownloadJob {
17 public:
18 DownloadUrlJob(
asanka 2017/02/16 16:27:39 explicit
xingliu 2017/02/20 18:59:11 Done, but omitted the explicit. Now we also pass D
19 std::unique_ptr<DownloadRequestHandleInterface> request_handle);
20 ~DownloadUrlJob() override;
21
22 // DownloadJob implementation.
23 void Start() override;
24 void Cancel(bool user_cancel) override;
25 void Pause() override;
26 void Resume() override;
27 WebContents* GetWebContents() const override;
28
29 private:
30 // Used to perform operations on network request.
31 // Can be null on interrupted download.
32 std::unique_ptr<DownloadRequestHandleInterface> request_handle_;
33
34 DISALLOW_COPY_AND_ASSIGN(DownloadUrlJob);
35 };
36
37 } // namespace content
38
39 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_URL_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698