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

Unified Diff: content/browser/download/download_job_factory.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 side-by-side diff with in-line comments
Download patch
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..54a28418696ff01864b7e4b36345cf6c83e9cb8c
--- /dev/null
+++ b/content/browser/download/download_job_factory.h
@@ -0,0 +1,28 @@
+// 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 DownloadJob;
+class DownloadRequestHandleInterface;
+
+// Factory class to create different kinds of DownloadJob.
+class DownloadJobFactory {
+ public:
+ static std::unique_ptr<DownloadJob> CreateJob(
+ std::unique_ptr<DownloadRequestHandleInterface> req_handle,
+ const DownloadCreateInfo& create_info);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_JOB_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698