| 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ |
| 7 | 7 |
| 8 #include "content/browser/download/download_file.h" | 8 #include "content/browser/download/download_file.h" |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 std::unique_ptr<DownloadSaveInfo> save_info, | 47 std::unique_ptr<DownloadSaveInfo> save_info, |
| 48 const base::FilePath& default_downloads_directory, | 48 const base::FilePath& default_downloads_directory, |
| 49 std::unique_ptr<ByteStreamReader> stream_reader, | 49 std::unique_ptr<ByteStreamReader> stream_reader, |
| 50 const net::NetLogWithSource& net_log, | 50 const net::NetLogWithSource& net_log, |
| 51 base::WeakPtr<DownloadDestinationObserver> observer); | 51 base::WeakPtr<DownloadDestinationObserver> observer); |
| 52 | 52 |
| 53 ~DownloadFileImpl() override; | 53 ~DownloadFileImpl() override; |
| 54 | 54 |
| 55 // DownloadFile functions. | 55 // DownloadFile functions. |
| 56 void Initialize(const InitializeCallback& callback, | 56 void Initialize(const InitializeCallback& callback, |
| 57 const DownloadItem::ReceivedSlices& received_slices) override; | 57 const DownloadItem::ReceivedSlices& received_slices, |
| 58 bool is_parallelizable) override; |
| 58 | 59 |
| 59 void AddByteStream(std::unique_ptr<ByteStreamReader> stream_reader, | 60 void AddByteStream(std::unique_ptr<ByteStreamReader> stream_reader, |
| 60 int64_t offset, | 61 int64_t offset, |
| 61 int64_t length) override; | 62 int64_t length) override; |
| 62 | 63 |
| 63 void RenameAndUniquify(const base::FilePath& full_path, | 64 void RenameAndUniquify(const base::FilePath& full_path, |
| 64 const RenameCompletionCallback& callback) override; | 65 const RenameCompletionCallback& callback) override; |
| 65 void RenameAndAnnotate(const base::FilePath& full_path, | 66 void RenameAndAnnotate(const base::FilePath& full_path, |
| 66 const std::string& client_guid, | 67 const std::string& client_guid, |
| 67 const GURL& source_url, | 68 const GURL& source_url, |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 274 |
| 274 base::WeakPtr<DownloadDestinationObserver> observer_; | 275 base::WeakPtr<DownloadDestinationObserver> observer_; |
| 275 base::WeakPtrFactory<DownloadFileImpl> weak_factory_; | 276 base::WeakPtrFactory<DownloadFileImpl> weak_factory_; |
| 276 | 277 |
| 277 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl); | 278 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl); |
| 278 }; | 279 }; |
| 279 | 280 |
| 280 } // namespace content | 281 } // namespace content |
| 281 | 282 |
| 282 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ | 283 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ |
| OLD | NEW |