| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
| 16 | 16 |
| 17 namespace crypto { | 17 namespace crypto { |
| 18 class SecureHash; | 18 class SecureHash; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| 22 class BoundNetLog; | 22 class NetLogWithSource; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 | 26 |
| 27 class ByteStreamReader; | 27 class ByteStreamReader; |
| 28 class DownloadDestinationObserver; | 28 class DownloadDestinationObserver; |
| 29 class DownloadFile; | 29 class DownloadFile; |
| 30 class DownloadManager; | 30 class DownloadManager; |
| 31 struct DownloadSaveInfo; | 31 struct DownloadSaveInfo; |
| 32 | 32 |
| 33 class CONTENT_EXPORT DownloadFileFactory { | 33 class CONTENT_EXPORT DownloadFileFactory { |
| 34 public: | 34 public: |
| 35 virtual ~DownloadFileFactory(); | 35 virtual ~DownloadFileFactory(); |
| 36 | 36 |
| 37 virtual DownloadFile* CreateFile( | 37 virtual DownloadFile* CreateFile( |
| 38 std::unique_ptr<DownloadSaveInfo> save_info, | 38 std::unique_ptr<DownloadSaveInfo> save_info, |
| 39 const base::FilePath& default_downloads_directory, | 39 const base::FilePath& default_downloads_directory, |
| 40 std::unique_ptr<ByteStreamReader> byte_stream, | 40 std::unique_ptr<ByteStreamReader> byte_stream, |
| 41 const net::BoundNetLog& bound_net_log, | 41 const net::NetLogWithSource& net_log, |
| 42 base::WeakPtr<DownloadDestinationObserver> observer); | 42 base::WeakPtr<DownloadDestinationObserver> observer); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace content | 45 } // namespace content |
| 46 | 46 |
| 47 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_ | 47 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_FACTORY_H_ |
| OLD | NEW |