| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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& initialize_callback, | 56 void Initialize(const InitializeCallback& initialize_callback, |
| 57 const CancelRequestCallback& cancel_request_callback, | 57 const CancelRequestCallback& cancel_request_callback, |
| 58 const DownloadItem::ReceivedSlices& received_slices) override; | 58 const DownloadItem::ReceivedSlices& received_slices, |
| 59 bool is_parallelizable) override; |
| 59 | 60 |
| 60 void AddByteStream(std::unique_ptr<ByteStreamReader> stream_reader, | 61 void AddByteStream(std::unique_ptr<ByteStreamReader> stream_reader, |
| 61 int64_t offset, | 62 int64_t offset, |
| 62 int64_t length) override; | 63 int64_t length) override; |
| 63 | 64 |
| 64 void RenameAndUniquify(const base::FilePath& full_path, | 65 void RenameAndUniquify(const base::FilePath& full_path, |
| 65 const RenameCompletionCallback& callback) override; | 66 const RenameCompletionCallback& callback) override; |
| 66 void RenameAndAnnotate(const base::FilePath& full_path, | 67 void RenameAndAnnotate(const base::FilePath& full_path, |
| 67 const std::string& client_guid, | 68 const std::string& client_guid, |
| 68 const GURL& source_url, | 69 const GURL& source_url, |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 | 281 |
| 281 base::WeakPtr<DownloadDestinationObserver> observer_; | 282 base::WeakPtr<DownloadDestinationObserver> observer_; |
| 282 base::WeakPtrFactory<DownloadFileImpl> weak_factory_; | 283 base::WeakPtrFactory<DownloadFileImpl> weak_factory_; |
| 283 | 284 |
| 284 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl); | 285 DISALLOW_COPY_AND_ASSIGN(DownloadFileImpl); |
| 285 }; | 286 }; |
| 286 | 287 |
| 287 } // namespace content | 288 } // namespace content |
| 288 | 289 |
| 289 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ | 290 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_FILE_IMPL_H_ |
| OLD | NEW |