Chromium Code Reviews| 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 DownloadItemImpl; | |
| 16 class DownloadJob; | |
| 17 class DownloadRequestHandleInterface; | |
| 18 | |
| 19 // Factory class to create different kinds of DownloadJob. | |
| 20 class DownloadJobFactory { | |
| 21 public: | |
| 22 static std::unique_ptr<DownloadJob> CreateJob( | |
| 23 DownloadItemImpl* download_item, | |
| 24 std::unique_ptr<DownloadRequestHandleInterface> req_handle, | |
| 25 const DownloadCreateInfo& create_info); | |
| 26 }; | |
|
qinmin
2017/02/23 07:26:57
DISALLOW_COPY_AND_ASSIGN(DownloadJobFactory)
xingliu
2017/02/24 23:43:13
Done.
| |
| 27 | |
| 28 } // namespace content | |
| 29 | |
| 30 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_JOB_FACTORY_H_ | |
| OLD | NEW |