| OLD | NEW |
| (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_FACTORY_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_JOB_FACTORY_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "content/browser/download/download_create_info.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class DownloadJob; |
| 16 class DownloadRequestHandleInterface; |
| 17 |
| 18 // Factory class to create different kinds of DownloadJob. |
| 19 class DownloadJobFactory { |
| 20 public: |
| 21 static std::unique_ptr<DownloadJob> CreateJob( |
| 22 std::unique_ptr<DownloadRequestHandleInterface> req_handle, |
| 23 const DownloadCreateInfo& create_info); |
| 24 }; |
| 25 |
| 26 } // namespace content |
| 27 |
| 28 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_JOB_FACTORY_H_ |
| OLD | NEW |