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_ITEM_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 std::string etag_; | 706 std::string etag_; |
707 | 707 |
708 // The data slices that have been received so far. | 708 // The data slices that have been received so far. |
709 std::vector<DownloadItem::ReceivedSlice> received_slices_; | 709 std::vector<DownloadItem::ReceivedSlice> received_slices_; |
710 | 710 |
711 // Net log to use for this download. | 711 // Net log to use for this download. |
712 const net::NetLogWithSource net_log_; | 712 const net::NetLogWithSource net_log_; |
713 | 713 |
714 std::unique_ptr<DownloadJob> job_; | 714 std::unique_ptr<DownloadJob> job_; |
715 | 715 |
| 716 // Value of |received_bytes_| at the time the download was interrupted with |
| 717 // CONTENT_LENGTH_MISMATCH. |
| 718 int64_t received_bytes_at_length_mismatch = -1; |
| 719 |
716 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; | 720 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; |
717 | 721 |
718 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); | 722 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); |
719 }; | 723 }; |
720 | 724 |
721 } // namespace content | 725 } // namespace content |
722 | 726 |
723 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ | 727 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ |
OLD | NEW |