Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: content/browser/download/download_item_impl.h

Issue 2832223004: interrupt and resume download with CONTENT_LENGTH_MISMATCH errors (Closed)
Patch Set: fix tests Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/download/download_interrupt_reasons_impl.cc ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698