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

Unified Diff: content/browser/download/download_job_factory.h

Issue 2689373003: Introduce ParallelDownloadJob. (Closed)
Patch Set: nits. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/download_job.cc ('k') | content/browser/download/download_job_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_job_factory.h
diff --git a/content/browser/download/download_job_factory.h b/content/browser/download/download_job_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..10eaa21aafa0c6ec7805a21e61c84edc9fb55a4b
--- /dev/null
+++ b/content/browser/download/download_job_factory.h
@@ -0,0 +1,33 @@
+// 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_FACTORY_H_
+#define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_JOB_FACTORY_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "content/browser/download/download_create_info.h"
+
+namespace content {
+
+class DownloadItemImpl;
+class DownloadJob;
+class DownloadRequestHandleInterface;
+
+// Factory class to create different kinds of DownloadJob.
+class DownloadJobFactory {
+ public:
+ static std::unique_ptr<DownloadJob> CreateJob(
+ DownloadItemImpl* download_item,
+ std::unique_ptr<DownloadRequestHandleInterface> req_handle,
+ const DownloadCreateInfo& create_info);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DownloadJobFactory);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_JOB_FACTORY_H_
« no previous file with comments | « content/browser/download/download_job.cc ('k') | content/browser/download/download_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698